NAME
WWW::Hetzner::Cloud::Network - Hetzner Cloud Network object
VERSION
version 0.001
SYNOPSIS
my $network = $cloud->networks->get($id);
# Read attributes
print $network->name, "\n";
print $network->ip_range, "\n";
# Subnets
$network->add_subnet(
ip_range => '10.0.1.0/24',
network_zone => 'eu-central',
type => 'cloud',
);
$network->delete_subnet('10.0.1.0/24');
# Routes
$network->add_route(destination => '10.100.1.0/24', gateway => '10.0.0.1');
$network->delete_route(destination => '10.100.1.0/24', gateway => '10.0.0.1');
# Update
$network->name('new-name');
$network->update;
# Delete
$network->delete;
NAME
WWW::Hetzner::Cloud::Network - Hetzner Cloud Network object
ATTRIBUTES
id, name, ip_range, subnets, routes, servers, labels, protection, created
Standard network attributes.
METHODS
add_subnet(%opts)
Add a subnet. Required: ip_range, network_zone, type.
delete_subnet($ip_range)
Delete a subnet by IP range.
add_route(%opts)
Add a route. Required: destination, gateway.
delete_route(%opts)
Delete a route. Required: destination, gateway.
update
Saves changes to name and labels.
delete
Deletes the network.
SUPPORT
Source Code
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/Getty/p5-www-hetzner
git clone https://github.com/Getty/p5-www-hetzner.git
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.