NAME
WWW::Hetzner::Cloud::PlacementGroup - Hetzner Cloud Placement Group object
VERSION
version 0.002
SYNOPSIS
my $pg = $cloud->placement_groups->get($id);
print $pg->name, "\n";
print $pg->type, "\n"; # spread
print scalar(@{$pg->servers}), " servers\n";
# Update
$pg->name('new-name');
$pg->update;
# Delete
$pg->delete;
DESCRIPTION
This class represents a Hetzner Cloud placement group. Objects are returned by WWW::Hetzner::Cloud::API::PlacementGroups methods.
id
Placement group ID (read-only).
name
Placement group name (read-write).
type
Placement group type, e.g. "spread" (read-only).
servers
Arrayref of server IDs in this placement group (read-only).
labels
Labels hash (read-write).
created
Creation timestamp (read-only).
update
$pg->name('new-name');
$pg->update;
Saves changes to name and labels.
delete
$pg->delete;
Deletes the placement group.
data
my $hashref = $pg->data;
Returns all placement group data as a hashref (for JSON serialization).
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-hetzner/issues.
IRC
Join #kubernetes on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.