NAME
WWW::Hetzner::Cloud::FloatingIP - Hetzner Cloud Floating IP object
VERSION
version 0.001
SYNOPSIS
my $fip = $cloud->floating_ips->get($id);
# Read attributes
print $fip->ip, "\n";
print $fip->type, "\n"; # ipv4 or ipv6
# Assign to server
$fip->assign($server_id);
$fip->unassign;
# Change reverse DNS
$fip->change_dns_ptr($fip->ip, 'server.example.com');
# Update
$fip->name('new-name');
$fip->update;
# Delete
$fip->delete;
NAME
WWW::Hetzner::Cloud::FloatingIP - Hetzner Cloud Floating IP object
ATTRIBUTES
id, name, description, ip, type, server, dns_ptr, home_location, labels, created
Standard floating IP attributes.
METHODS
is_assigned
Returns true if assigned to a server.
location
Returns home location name.
assign($server_id)
Assign to a server.
unassign
Unassign from current server.
change_dns_ptr($ip, $ptr)
Change reverse DNS pointer.
update
Saves changes to name, description, and labels.
delete
Deletes the floating IP.
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.