This API is used to query the summary information of EVS disks, including the disk quantity, total capacity, and metadata information.
The request version must be 3.12 or later.
GET https://{endpoint}/v3/{project_id}/volumes/summary
Parameter |
Type |
Description |
|---|---|---|
volume-summary |
Object |
The summary information of queried disks. For details, see Parameters in the volume-summary field. |
Parameter |
Type |
Description |
|---|---|---|
total_size |
Integer |
The total size of disks, in GB. |
total_count |
Integer |
The total quantity of disks. |
metadata |
Object |
The disk metadata information. This parameter is supported when the request version is 3.36 or later. |
{
"volume-summary": {
"total_size": 83,
"total_count": 8,
"metadata": {}
}
}
{
"error": {
"message": "XXXX",
"code": "XXX"
}
}
{
"badRequest": {
"message": "XXXX",
"code": "XXX"
}
}
For details, see Error Codes.