forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
8.3 KiB
8.3 KiB
Querying Summary Information of EVS Disks
Function
This API is used to query the summary information of EVS disks, including the disk quantity, total capacity, and metadata information.
URI
Request
- Example request
GET https://{endpoint}/v3/{project_id}/volumes/summary
Response
- Parameter description
Parameter
Type
Description
volume-summary
Object
Specifies the summary information of queried disks. For details, see Parameters in the volume-summary field.
- Parameters in the volume-summary field
Parameter
Type
Description
total_size
Integer
Specifies the total size of disks, in GB.
total_count
Integer
Specifies the total quantity of disks.
metadata
Object
Specifies the disk metadata information. This parameter is supported when the request version is 3.36 or later.
- Example response
{ "volume-summary": { "total_size": 83, "total_count": 8, "metadata": {} } }
or{ "error": { "message": "XXXX", "code": "XXX" } }
In the preceding example, error indicates a general error, for example, badRequest or itemNotFound. An example is provided as follows:{ "badRequest": { "message": "XXXX", "code": "XXX" } }
Error Codes
For details, see Error Codes.
Parent topic: EVS Disk