Describes one or more 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 Edge Node Service (ENS) node. |
cn-kunming-telecom |
|
DiskId |
string |
No |
The ID of the disk. |
d-5soak1gqa507lyfzvz0xo**** |
|
DiskName |
string |
No |
The name of the disk. |
DiskName |
|
PageNumber |
string |
No |
The page number. The value must be a number that is greater than 0. Default value: 1. |
1 |
|
PageSize |
string |
No |
The number of entries per page. Maximum value: 50. Default value: 10. |
10 |
|
Status |
string |
No |
The status of the disk. Valid values:
|
Available |
|
Type |
string |
No |
The type of the disk. Valid values:
|
system |
|
Category |
string |
No |
The category of the disk. Valid values:
|
local_ssd |
|
DiskChargeType |
string |
No |
The billing method of the disk. Valid values:
|
prepay |
|
EnsRegionIds |
string |
No |
The list of node IDs. |
["cn-suzhou-telecom","cn-chengdu-telecom"] |
|
DiskIds |
string |
No |
The ID of the disk. |
[\"d-wz99njena32z90ki****\"] |
|
OrderByParams |
string |
No |
The sorting order. The value is a JSON string. Example: {"EnsRegionId":"desc"}. By default, results are sorted by node ID in descending order. |
{ "DiskNameSort":"desc","EnsRegionIdSort":"asc" } |
|
DiskType |
string |
No |
The purchasing model of the disk. Valid values:
|
PostPayDisk |
|
InstanceId |
string |
No |
The instance to which the disk is attached. |
i-5t77rb0yoz79m28ku60sx**** |
|
SnapshotId |
string |
No |
The ID of the snapshot. |
s-897654321**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
|
Code |
integer |
The status code. A value of 0 indicates a successful response. |
0 |
| Disks |
object |
The information about the disks. |
|
| Disks |
array<object> |
The list of disks. |
|
|
array<object> |
The details of a disk. |
||
|
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. |
prod-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. |
|
|
Value |
string |
The value of the tag. |
|
|
PageNumber |
integer |
The page number of the returned page. |
1 |
|
PageSize |
integer |
The number of entries per page. Maximum value: 50. Default value: 10. |
50 |
|
RequestId |
string |
The ID of the request. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
|
TotalCount |
integer |
The total number of entries returned. |
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": "prod-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": "",
"Value": ""
}
]
}
}
]
},
"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.