NAME

WWW::Hetzner::Cloud::API::FloatingIPs - Hetzner Cloud Floating IPs API

VERSION

version 0.001

SYNOPSIS

my $cloud = WWW::Hetzner::Cloud->new(token => $token);

# List floating IPs
my $fips = $cloud->floating_ips->list;

# Create floating IP
my $fip = $cloud->floating_ips->create(
    type          => 'ipv4',
    home_location => 'fsn1',
    name          => 'my-floating-ip',
);

# Assign to server
$cloud->floating_ips->assign($fip->id, $server_id);

# Unassign
$cloud->floating_ips->unassign($fip->id);

# Delete
$cloud->floating_ips->delete($fip->id);

NAME

WWW::Hetzner::Cloud::API::FloatingIPs - Hetzner Cloud Floating IPs API

METHODS

list(%params)

Returns arrayref of FloatingIP objects.

get($id)

Returns FloatingIP object.

create(%params)

Creates floating IP. Required: type, home_location. Optional: name, description, server, labels.

update($id, %params)

Updates floating IP. Params: name, description, labels.

delete($id)

Deletes floating IP.

assign($id, $server_id)

Assign floating IP to server.

unassign($id)

Unassign floating IP from server.

change_dns_ptr($id, $ip, $dns_ptr)

Change reverse DNS pointer.

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.