List Volumes for VM
Retrieves all volumes attached to the specified VM instance.
HTTP Request
GET {API_URL}/virtual-machines/{virtual_machine_id}/volumes
Query string parameters
| Parameters | Requirements | Type | Description |
|---|---|---|---|
limit | Optional | int | The number of items to return |
offset | Optional | int | The number of items to skip before starting to collect the result set |
sortField | Optional | string | The field by which the data will be ordered |
sortOrder | Optional | string | Sorting order: desc、asc |
filters | Optional | string | Stringified array of filter objects. eg: [{"key":"name","op":"contains","val":"hub"}] |
Reponse Attributes
status boolean
Indicates the success or failure of the operation. true indicates success, while false indicates an error.
message string
A message confirming the status of the request to retrieve a list of existing volumes.
data array
An array containing volumes objects each containing details about a volume.
For descriptions of the fields within the volumes object returned in response to your request, please refer to the documentation here.

