Hetzner hcloud icon

Hetzner hcloud

Interact with the cloud api of the german infrastructure provider Hetzner.

Actions47

Volume → List

AI-generated

Summary

List volumes in the Hetzner Cloud account applying optional filters and pagination.

Inputs

  • filters — Filter volumes by name, label selector, or status (available or creating).
  • sort — Sort volumes by id, name, or creation date, in ascending or descending order.
  • page — Page number to retrieve, minimum 1, defaults to 1.
  • per_page — Number of volumes to retrieve per page, minimum 1, defaults to 25.

Output shape

a list of volume records matching the specified filters, sorted, and paginated as requested

The response includes only volumes that match all specified filters. Pagination controls which subset of results is returned. Sorting applies before pagination.

Examples

Example 1: Retrieve all available volumes named 'data-volume' labeled 'env=prod', sorted by creation date descending, showing page 1 with 10 volumes per page.

Set filters: name='data-volume', label_selector='env=prod', status='available'; sort='created:desc'; page=1; per_page=10.

Links

Discussion