action hetzner_get_volumes { label: "Get all Volumes" description: "Gets all existing Volumes that you have available." provider: hetzner method: GET path: "/volumes" encoding: json input: { type: "object" properties: { label_selector: { type: "string" } name: { type: "string" } sort: { type: "string" enum: ["id", "id:asc", "id:desc", "name", "name:asc", "name:desc", "created", "created:asc", "created:desc"] } status: { type: "string" enum: ["available", "creating"] } } additionalProperties: false } output: { type: "object" required: ["volumes"] properties: { meta: { type: "object" required: ["pagination"] properties: { pagination: { type: "object" required: ["last_page", "next_page", "page", "per_page", "previous_page", "total_entries"] properties: { last_page: { type: "number" description: "ID of the last page available. Can be null if the current page is the last one." } next_page: { type: "number" description: "ID of the next page. Can be null if the current page is the last one." } page: { type: "number" description: "Current page number" } per_page: { type: "number" description: "Maximum number of items shown per page in the response" } previous_page: { type: "number" description: "ID of the previous page. Can be null if the current page is the first one." } total_entries: { type: "number" description: "The total number of entries that exist in the database for this query. Nullable if unknown." } } } } } volumes: { type: "array" items: { type: "object" required: ["id", "created", "name", "server", "location", "size", "linux_device", "protection", "labels", "status", "format"] properties: { created: { type: "string" description: "Point in time when the Resource was created (in ISO-8601 format)" } format: { type: "string" description: "Filesystem of the Volume if formatted on creation, null if not formatted on creation" } id: { type: "integer" description: "ID of the Resource" } labels: { type: "object" description: "User-defined labels (key-value pairs)" } linux_device: { type: "string" description: "Device path on the file system for the Volume" } location: { type: "object" description: "Location of the Volume. Volume can only be attached to Servers in the same Location." required: ["id", "name", "description", "country", "city", "latitude", "longitude", "network_zone"] properties: { city: { type: "string" description: "City the Location is closest to" } country: { type: "string" description: "ISO 3166-1 alpha-2 code of the country the Location resides in" } description: { type: "string" description: "Description of the Location" } id: { type: "number" description: "ID of the Location" } latitude: { type: "number" description: "Latitude of the city closest to the Location" } longitude: { type: "number" description: "Longitude of the city closest to the Location" } name: { type: "string" description: "Unique identifier of the Location" } network_zone: { type: "string" description: "Name of network zone this Location resides in" } } } name: { type: "string" description: "Name of the Resource. Must be unique per Project." } protection: { type: "object" description: "Protection configuration for the Resource" required: ["delete"] properties: { delete: { type: "boolean" description: "If true, prevents the Resource from being deleted" } } } server: { type: "integer" description: "ID of the Server the Volume is attached to, null if it is not attached at all" } size: { type: "number" description: "Size in GB of the Volume" } status: { type: "string" description: "Current status of the Volume" enum: ["creating", "available"] } } } } } } }