NAME

VM::HetznerCloud::API::PlacementGroups - PlacementGroups

VERSION

version 0.0.3

SYNOPSIS

use VM::HetznerCloud;

my $api_key = '1234abc';
my $cloud   = VM::HetznerCloud->new(
    token => $api_key,
);

$cloud->records->create(
);

ATTRIBUTES

  • endpoint

METHODS

list

Returns all PlacementGroup objects.

$cloud->placement_groups->list(
    label_selector => 'test',
    name => 'test',
    sort => 'test',
    type => 'test',
);

create

Creates a new PlacementGroup.

$cloud->placement_groups->create();

delete

Deletes a PlacementGroup.

$cloud->placement_groups->delete(
    id => 'test',
);

get

Gets a specific PlacementGroup object.

$cloud->placement_groups->get(
    id => 'test',
);

put

Updates the PlacementGroup properties.

Note that when updating labels, the PlacementGroup’s current set of labels will be replaced with the labels provided in the request body. So, for example, if you want to add a new label, you have to provide all existing labels plus the new label in the request body.

Note: if the PlacementGroup object changes during the request, the response will be a “conflict” error.

$cloud->placement_groups->put(
    id => 'test',
);

AUTHOR

Renee Baecker <reneeb@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2018 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)