List Volumes
Gets all existing Volumes that you have available.
Request
- Base URL: https://api.hetzner.cloud/v1
- URL: https://api.hetzner.cloud/v1/volumes
- Auth: HTTP bearer
Query parameters
Filter resources by status. May be used multiple times.
The response will only contain the resources with the specified status.
[ "available" ]
Sort resources by field and direction. May be used multiple times.
For more information, see "Sorting".
Filter resources by their name.
The response will only contain the resources matching exactly the specified name.
Filter resources by labels.
The response will only contain resources matching the label selector. For more information, see "Label Selector".
Page number to return. For more information, see "Pagination".
Maximum number of entries returned per page. For more information, see "Pagination".
Response
Request succeeded.
Example response
{
"volumes": [
{
"id": 42,
"created": "2016-01-30T23:55:00Z",
"name": "my-resource",
"server": 12,
"location": {
"id": 42,
"name": "fsn1",
"description": "Falkenstein DC Park 1",
"country": "DE",
"city": "Falkenstein",
"latitude": 50.47612,
"longitude": 12.370071,
"network_zone": "eu-central"
},
"size": 42,
"linux_device": "/dev/disk/by-id/scsi-0HC_Volume_4711",
"labels": {
"environment": "prod",
"example.com/my": "label",
"just-a-key": ""
},
"status": "available",
"format": "xfs"
}
],
"meta": {
"pagination": {
"page": 3,
"per_page": 25,
"previous_page": 2,
"next_page": 4,
"last_page": 4,
"total_entries": 100
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.