Queries information about one or more created disks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeDisks |
get |
*Disk
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnsRegionId |
string |
No |
The ID of the ENS edge zone. |
cn-kunming-telecom |
| DiskId |
string |
No |
The ID of the cloud disk. |
d-5soak1gqa507lyfzvz0xo**** |
| DiskName |
string |
No |
The name of the disk. |
DiskName |
| PageNumber |
string |
No |
The page number of the query list. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
string |
No |
The number of entries per page for a paged query. Maximum value: 50. Default value: 10. |
10 |
| Status |
string |
No |
The disk status.
|
Available |
| Type |
string |
No |
The disk property.
|
system |
| Category |
string |
No |
The disk category.
|
local_ssd |
| DiskChargeType |
string |
No |
The billing type.
|
prepay |
| EnsRegionIds |
string |
No |
The list of edge zones. |
["cn-suzhou-telecom","cn-chengdu-telecom"] |
| DiskIds |
string |
No |
The disk IDs. |
[\"d-wz99njena32z90ki****\"] |
| OrderByParams |
string |
No |
The sorting parameter. Format example: {"EnsRegionId":"desc"}. By default, results are sorted by edge zone ID in descending order. |
{ "DiskNameSort":"desc","EnsRegionIdSort":"asc" } |
| DiskType |
string |
No |
The disk purchase method.
|
PostPayDisk |
| InstanceId |
string |
No |
The instance to which the cloud disk is mounted. |
i-5t77rb0yoz79m28ku60sx**** |
| SnapshotId |
string |
No |
The snapshot ID. |
s-897654321**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The returned business code. A value of 0 indicates success. |
0 |
| Disks |
object |
||
| Disks |
array<object> |
The list of disk information. |
|
|
array<object> |
The list of disk information. |
||
| Category |
string |
The category of the disk. Valid values:
|
local_ssd |
| CreationTime |
string |
The time when the disk was created. The time is displayed in UTC and follows the ISO 8601 standard in the |
2021-11-11T14:34:55+08:00 |
| DiskChargeType |
string |
The billing method of the disk. Valid values:
|
prepaid |
| DiskId |
string |
The ID of the disk. |
d-5svum1dx1w4a4spr54lgr**** |
| DiskName |
string |
The name of the disk. |
fvt-ecs-5cf0**** |
| EnsRegionId |
string |
The ID of the Edge Node Service (ENS) node. |
cn-guangzhou-10 |
| InstanceId |
string |
The ID of the instance to which the disk is attached. |
i-5t77rb0yoz79m28ku60sx**** |
| InstanceName |
string |
The name of the instance to which the disk is attached. |
Edge prod streaming server-1063 |
| Description |
string |
The description of the disk. |
disk-description |
| Size |
integer |
The size of the disk. Unit: MiB. |
20 |
| Status |
string |
The status of the disk. Valid values:
|
Available |
| Type |
string |
The type of the disk. Valid values:
|
1 |
| Portable |
boolean |
Indicates whether the disk can be detached. Valid values:
The Portable property is false for the following disk types:
|
true |
| SnapshotId |
string |
The ID of the snapshot from which the disk is created. |
s-bp67acfmxazb4p**** |
| SerialId |
string |
The serial number of the disk. |
123 |
| Encrypted |
boolean |
Indicates whether the disk is encrypted. Valid values:
|
false |
| EncryptedKeyId |
string |
The ID of the Key Management Service (KMS) key used for the disk. |
05467897a-4262-4802-b8cb-00d3fb40**** |
| DeleteWithInstance |
boolean |
Indicates whether the disk is released when the instance is released. Valid values:
|
false |
| Tags |
object |
The tags of the disk. |
|
| Tags |
array<object> |
A list of tags. |
|
|
object |
The details of a tag. |
||
| Key |
string |
The key of the tag. |
team |
| Value |
string |
The value of the tag. |
backend |
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page for a paged query. Maximum value: 50. Default value: 10. |
50 |
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| TotalCount |
integer |
The total number of pages for a paged query. |
13 |
Examples
Success response
JSON format
{
"Code": 0,
"Disks": {
"Disks": [
{
"Category": "local_ssd",
"CreationTime": "2021-11-11T14:34:55+08:00",
"DiskChargeType": "prepaid",
"DiskId": "d-5svum1dx1w4a4spr54lgr****",
"DiskName": "fvt-ecs-5cf0****",
"EnsRegionId": "cn-guangzhou-10",
"InstanceId": "i-5t77rb0yoz79m28ku60sx****",
"InstanceName": "Edge prod streaming server-1063",
"Description": "disk-description",
"Size": 20,
"Status": "Available",
"Type": "1",
"Portable": true,
"SnapshotId": "s-bp67acfmxazb4p****",
"SerialId": "123",
"Encrypted": false,
"EncryptedKeyId": "05467897a-4262-4802-b8cb-00d3fb40****",
"DeleteWithInstance": false,
"Tags": {
"Tags": [
{
"Key": "team",
"Value": "backend"
}
]
}
}
]
},
"PageNumber": 1,
"PageSize": 50,
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"TotalCount": 13
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter domainName that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | The specified instance ID does not exist. |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.