NAME
WWW::Hetzner::Cloud::Pricing - Hetzner Cloud Pricing object
VERSION
version 0.101
SYNOPSIS
my $pricing = $cloud->pricing->get;
print $pricing->currency, "\n"; # EUR
print $pricing->vat_rate, "\n"; # 19.00
print $pricing->image->{price_per_gb_month}{gross}, "\n";
print $pricing->server_backup->{percentage}, "\n"; # 20.0
DESCRIPTION
This class represents the Hetzner Cloud price list. It is returned by "get" in WWW::Hetzner::Cloud::API::Pricing.
Pricing is a singleton read-only resource: there is exactly one price list per project, it has no id and no name. Its attributes are the raw hashrefs and arrayrefs of the API response -- money values are hashrefs with net and gross keys, both decimal strings.
currency
Currency of all prices, e.g. "EUR".
vat_rate
VAT rate applied to the net prices, e.g. "19.00".
image
Image price hashref with price_per_gb_month.
volume
Volume price hashref with price_per_gb_month.
server_backup
Backup price hashref with percentage -- backups cost that percentage of the server price.
floating_ips
Arrayref of floating IP prices, one entry per type (ipv4, ipv6), each with per-location prices.
primary_ips
Arrayref of primary IP prices, one entry per type (ipv4, ipv6), each with per-location prices.
server_types
Arrayref of server type prices, each with id, name and per-location prices.
load_balancer_types
Arrayref of load balancer type prices, each with id, name and per-location prices.
floating_ip
Legacy single floating IP price hashref with price_monthly. Superseded by floating_ips.
traffic
Legacy traffic price hashref with price_per_tb. No longer part of the current API response, where traffic is priced per server type; kept for responses that still carry it.
data
my $hashref = $pricing->data;
Returns all pricing data as a hashref (for JSON serialization).
SEE ALSO
WWW::Hetzner::Cloud::API::Pricing - Pricing API
WWW::Hetzner::Cloud - Main Cloud API client
WWW::Hetzner::Cloud::ServerType - ServerType entity
WWW::Hetzner::Cloud::LoadBalancerType - LoadBalancerType entity
WWW::Hetzner - Main umbrella module
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 <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.