NAME
WWW::Hetzner::Cloud::API::Volumes - Hetzner Cloud Volumes API
VERSION
version 0.001
SYNOPSIS
my $cloud = WWW::Hetzner::Cloud->new(token => $token);
# List volumes
my $volumes = $cloud->volumes->list;
# Create volume
my $volume = $cloud->volumes->create(
name => 'my-volume',
size => 50, # GB
location => 'fsn1',
format => 'ext4', # optional
);
# Attach to server
$cloud->volumes->attach($volume->id, $server_id);
# Resize
$cloud->volumes->resize($volume->id, 100);
# Delete
$cloud->volumes->delete($volume->id);
NAME
WWW::Hetzner::Cloud::API::Volumes - Hetzner Cloud Volumes API
METHODS
list(%params)
Returns arrayref of Volume objects.
get($id)
Returns Volume object.
create(%params)
Creates volume. Required: name, size, location. Optional: format, labels, automount, server.
delete($id)
Deletes volume.
attach($volume_id, $server_id, %opts)
Attaches volume to server.
detach($volume_id)
Detaches volume.
resize($volume_id, $size)
Resizes volume.
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.