NAME
WWW::Hetzner::Cloud::ServerType - Hetzner Cloud ServerType object
VERSION
version 0.102
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
Whether the server type is deprecated.
The API drops this top-level field on 2026-11-02; from then on the attribute is undef.
locations
Arrayref of location data hashrefs (read-only), one entry per location the server type is offered in. The entries carry the fields the API delivers: name (e.g. "fsn1"), available (whether the server type can be ordered there) and deprecated.
available replaces the availability the datacenter used to deliver in server_types.available; the datacenter endpoints are gone.
data
my $hashref = $type->data;
Returns all server type data as a hashref (for JSON serialization).
SEE ALSO
WWW::Hetzner::Cloud::API::ServerTypes - Server Types API
WWW::Hetzner::Cloud - Main Cloud API client
WWW::Hetzner::Cloud::Server - Server 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.