DescribeDisks
1. API Description
This API (DescribeDisks) is used to query the details of disks.
2. Input Parameters
The following request parameter list only provides API request parameters.
diskIds
No
Array of String
ID list of disks.
diskName
No
String
Filter by disk name. This field supports fuzzy search.
diskCategory
No
String
Disk type.
Basic NVMe SSD: the Basic NVMe SSD. Standard NVMe SSD: the Standard NVMe SSD.
Default value: Standard NVMe SSD.
Call DescribeDiskCategory to obtain disk type.
instanceId
No
String
Filter by the ID of the instance that the disk is attached to.
It can be obtained by calling DescribeInstances.
zoneId
No
String
Filter by the availability zone where the disk is located.
It can be obtained by calling DescribeZones.
pageNum
No
Integer
Number of pages returned.
Default value: 1
pageSize
No
Integer
Number of items in the current page result.
Default value: 20;
Maximum value: 1000.
regionId
No
String
Filter by the ID of the region where the disk is located.
It can be obtained by calling DescribeRegions.
snapshotAbility
No
Boolean
Available for snapshot creation or not.
resourceGroupId
No
String
Resource Group ID.
tagKeys
No
Array of String
Query using tag keys.
A maximum of 20 tag keys can be used.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request.
RequestId is required for locating a problem.
totalCount
Integer
Number of disks meeting the filtering conditions.
4. Code Example
1. Query the list of disks.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs,to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
HTTP Status Code
Error Code
Description
Last updated