NAME

WWW::Hetzner::Cloud::Datacenter - Hetzner Cloud Datacenter object

VERSION

version 0.001

SYNOPSIS

my $dc = $cloud->datacenters->get_by_name('fsn1-dc14');

print $dc->name, "\n";        # fsn1-dc14
print $dc->description, "\n"; # Falkenstein 1 DC14
print $dc->location, "\n";    # fsn1

DESCRIPTION

This class represents a Hetzner Cloud datacenter (virtual subdivision of a location). Objects are returned by WWW::Hetzner::Cloud::API::Datacenters methods.

Datacenters are read-only resources.

NAME

WWW::Hetzner::Cloud::Datacenter - Hetzner Cloud Datacenter object

ATTRIBUTES

id

Datacenter ID.

name

Datacenter name, e.g. "fsn1-dc14".

description

Human-readable description.

location

Location name (convenience accessor).

METHODS

data

my $hashref = $dc->data;

Returns all datacenter data as a hashref (for JSON serialization).

SUPPORT

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

https://github.com/Getty/p5-www-hetzner

git clone https://github.com/Getty/p5-www-hetzner.git

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.