NAME
WWW::Hetzner::Cloud::Volume - Hetzner Cloud Volume object
VERSION
version 0.001
SYNOPSIS
my $volume = $cloud->volumes->get($id);
# Read attributes
print $volume->id, "\n";
print $volume->name, "\n";
print $volume->size, " GB\n";
print $volume->linux_device, "\n";
# Attach to server
$volume->attach($server_id);
$volume->detach;
# Resize
$volume->resize(100); # 100 GB
# Update
$volume->name('new-name');
$volume->update;
# Delete
$volume->delete;
NAME
WWW::Hetzner::Cloud::Volume - Hetzner Cloud Volume object
ATTRIBUTES
id, name, status, size, server, created, labels, linux_device, format, location
Standard volume attributes.
METHODS
is_attached
Returns true if volume is attached to a server.
attach($server_id, %opts)
Attaches volume to a server. Options: automount => 1.
detach
Detaches volume from server.
resize($size)
Resizes volume to new size in GB. Can only increase size.
update
Saves changes to name and labels.
delete
Deletes the 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.