NAME

WWW::Hetzner::Cloud::API::Actions - Hetzner Cloud Actions API

VERSION

version 0.101

SYNOPSIS

use WWW::Hetzner::Cloud;

my $cloud = WWW::Hetzner::Cloud->new(token => $ENV{HETZNER_API_TOKEN});

# List all actions
my $actions = $cloud->actions->list_all;

# Fetch a single action
my $action = $cloud->actions->get($id);

# Action is a WWW::Hetzner::Action object
print $action->status, "\n";

# Block until it finishes
$action->wait;

DESCRIPTION

This module provides the API for reading Hetzner Cloud actions, the async job objects returned by resource-mutating calls. All methods return WWW::Hetzner::Action objects.

get

my $action = $cloud->actions->get($id);

Returns a WWW::Hetzner::Action object.

list

my $actions = $cloud->actions->list;
my $actions = $cloud->actions->list(status => 'running');

Returns an arrayref of WWW::Hetzner::Action objects. Optional parameters: status, sort.

list_all

my $entities = $controller->list_all(per_page => 50, %filters);

Returns a combined arrayref. Inherited from "list_all" in WWW::Hetzner::Role::Pagination. Unlike "list", which fetches one page, it follows every subsequent page starting at page 1 or the supplied page. It carries per_page, filters, and sort values to every request.

SEE ALSO

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-hetzner/issues.

IRC

Join #kubernetes on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.