NAME
WWW::Hetzner::Cloud::API::LoadBalancerTypes - Hetzner Cloud Load Balancer Types API
VERSION
version 0.101
SYNOPSIS
use WWW::Hetzner::Cloud;
my $cloud = WWW::Hetzner::Cloud->new(token => $ENV{HETZNER_API_TOKEN});
# List all load balancer types
my $types = $cloud->load_balancer_types->list_all;
# Get by ID
my $type = $cloud->load_balancer_types->get(1);
# Get by name
my $lb11 = $cloud->load_balancer_types->get_by_name('lb11');
printf "LB11: %d services, %d targets\n", $lb11->max_services, $lb11->max_targets;
DESCRIPTION
This module provides access to Hetzner Cloud load balancer types. Load balancer types define the connection, service and target limits of a load balancer. All methods return WWW::Hetzner::Cloud::LoadBalancerType objects.
Load balancer types are read-only resources.
list
my $types = $cloud->load_balancer_types->list;
Returns an arrayref of WWW::Hetzner::Cloud::LoadBalancerType objects.
list_all
my $entities = $controller->list_all(per_page => 50, %filters);
Returns a combined arrayref. Inherited from "list_all" in WWW::Hetzner::Role::Pagination. Unlike "list", which fetches one page, it follows every subsequent page starting at page 1 or the supplied page. It carries per_page, filters, and sort values to every request.
get
my $type = $cloud->load_balancer_types->get($id);
Returns a WWW::Hetzner::Cloud::LoadBalancerType object.
get_by_name
my $type = $cloud->load_balancer_types->get_by_name('lb11');
Returns a WWW::Hetzner::Cloud::LoadBalancerType object. Returns undef if not found.
SEE ALSO
WWW::Hetzner::Cloud - Main Cloud API client
WWW::Hetzner::Cloud::LoadBalancerType - LoadBalancerType entity class
WWW::Hetzner::CLI::Cmd::LoadBalancerType - LoadBalancerType CLI commands
WWW::Hetzner::Cloud::API::LoadBalancers - Load Balancers API
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.