NAME
WWW::Hetzner::Cloud::ServerType - Hetzner Cloud ServerType object
VERSION
version 0.002
SYNOPSIS
my $type = $cloud->server_types->get_by_name('cx22');
print $type->name, "\n"; # cx22
print $type->cores, "\n"; # 2
print $type->memory, "\n"; # 4
print $type->disk, "\n"; # 40
print $type->architecture, "\n"; # x86
DESCRIPTION
This class represents a Hetzner Cloud server type (CPU/memory/disk configuration). Objects are returned by WWW::Hetzner::Cloud::API::ServerTypes methods.
Server types are read-only resources.
id
Server type ID.
name
Server type name, e.g. "cx22", "cpx31".
description
Human-readable description.
cores
Number of CPU cores.
memory
Memory in GB.
disk
Disk size in GB.
cpu_type
CPU type: shared or dedicated.
architecture
CPU architecture: x86 or arm.
deprecated
Deprecation timestamp if deprecated, undef otherwise.
data
my $hashref = $type->data;
Returns all server type 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.