WWW-Hetzner
view release on metacpan or search on metacpan
Revision history for WWW-Hetzner
0.102 2026-10-21 18:48:51Z
- The distribution declares LWP::Protocol::https, without it every
https target fails
- Fix: transport failures (connection refused, DNS, TLS, timeout) now
croak with LWP's reason instead of a bare "Hetzner API error: 500";
non-JSON error bodies (e.g. a proxy's HTML 502) contribute their status
and text to the error message
- Fix: the debug log no longer prints password, private_key and
user_data values of request bodies
- New: WWW::Hetzner::Cloud::Costs, $cloud->costs(label_selector => ...,
price => 'gross'|'net') sums the hourly and monthly cost per resource
and in total for servers (plus the server backup surcharge when
backup_window is set), volumes, primary IPs, floating IPs and load
balancers, priced per location from /pricing. Gross by default; the
result carries price and vat_rate. Where /pricing has no hourly price
(volumes, floating IPs) hourly is derived as monthly/624 and flagged
hourly_derived. Resources without a price warn and stay out of the
totals
- CLI: hcloud.pl costs [--label|-l SELECTOR] [--net] [--json]
- Fix: Server and PrimaryIP read the location object current API responses
carry instead of the dropped datacenter (datacenter kept as fallback);
Server gains the backup_window attribute
- Fix: Servers->create sent start_after_create, automount, enable_ipv4 and
enable_ipv6 (also inside public_net) as JSON numbers, which the API
rejected as invalid_input; they are now JSON booleans, as is
change_type's upgrade_disk. The caller's public_net hash is no longer
modified
- Docs: WWW::Hetzner::Cloud::API::Datacenters is deprecated, Hetzner
removed GET /v1/datacenters (410 deprecated_api_endpoint); use
Locations. The hcloud.pl datacenter command and the datacenter parameter
of Servers->create and PrimaryIPs->create are deprecated as well
- Fix: Volumes->create and Volumes->attach send automount as a JSON
boolean; a Perl 0 went out as the JSON number 0, which the API rejected
as invalid_input, and attach turned every value into true
- CLI: hcloud.pl server list and hcloud.pl primary-ip list show the column
LOCATION instead of DATACENTER, the API no longer sends the datacenter
field
- New: the server type carries its locations, one entry per location with
the name, the availability the datacenter used to deliver and the
deprecation flag
0.101 2026-09-22 05:53:00Z
- New: WWW::Hetzner::Storage, a third API host (api.hetzner.com) for
Storage Boxes
- $storage->storage_boxes, ->storage_box_types and ->actions; Storage
Box objects expose per-box ->subaccounts, ->snapshots and ->actions
- CLI: hcloud.pl storage-box, 33 subcommands (create/update/delete,
access settings, protection, snapshot plan, snapshots, subaccounts)
- New: list_all collects all remaining pages on paginated controllers
(WWW::Hetzner::Role::Pagination); list keeps its single-page contract.
CLI lists and local name lookups use complete results; pagination
failures are reported explicitly
- New read-only Cloud resources: ISOs, Load Balancer Types and Pricing
- $cloud->isos (list/get/get_by_name), ->load_balancer_types, and
->pricing (a singleton, so get only)
- New entities WWW::Hetzner::Cloud::ISO, ::LoadBalancerType, ::Pricing
- CLI: hcloud.pl iso, load-balancer-type and pricing
- New Robot resources: boot, rdns and failover
- $robot->boot (rescue system, Linux install, VNC, Windows), with
enable_*/disable_* methods; returns raw hashrefs, no entity
- $robot->rdns and $robot->failover, listable per-IP resources with
entities WWW::Hetzner::Robot::RDNS and ::Failover
- CLI: hrobot.pl boot (rescue/linux/vnc/windows), rdns, failover
- BREAKING: mutating Cloud methods now return a WWW::Hetzner::Action object
instead of a raw decoded-JSON action hashref (66 methods across the API
controllers and their entity mirrors)
- Action has status predicates (is_running/is_success/is_error),
error_message, refresh and a blocking wait(interval => 1, timeout => 120)
( run in 0.465 second using v1.01-cache-2.11-cpan-8379b9b8ec2 )