NAME

WWW::Hetzner::Cloud::Location - Hetzner Cloud Location object

VERSION

version 0.001

SYNOPSIS

my $loc = $cloud->locations->get_by_name('fsn1');

print $loc->name, "\n";         # fsn1
print $loc->city, "\n";         # Falkenstein
print $loc->country, "\n";      # DE
print $loc->network_zone, "\n"; # eu-central

DESCRIPTION

This class represents a Hetzner Cloud location (physical data center site). Objects are returned by WWW::Hetzner::Cloud::API::Locations methods.

Locations are read-only resources.

NAME

WWW::Hetzner::Cloud::Location - Hetzner Cloud Location object

ATTRIBUTES

id

Location ID.

name

Location name, e.g. "fsn1", "nbg1", "hel1".

description

Human-readable description.

city

City name, e.g. "Falkenstein".

country

Country code, e.g. "DE".

network_zone

Network zone, e.g. "eu-central".

METHODS

data

my $hashref = $loc->data;

Returns all location 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.