Queries the details of one or more disks in a dedicated block storage cluster.
Operation description
-
You can use one of the following methods to check the responses:
-
Method 1: Use
NextToken
to configure the query token. Set the value to theNextToken
value that is returned in the last call to the DescribeDisks operation. Then, useMaxResults
to specify the maximum number of entries to return on each page. -
Method 2: Use
PageSize
to specify the number of entries to return on each page and then usePageNumber
to specify the number of the page to return.You can use only one of the preceding methods. If a large number of entries are to be returned, we recommend that you use method 1. When
NextToken
is specified,PageSize
andPageNumber
do not take effect andTotalCount
in the response is invalid.
-
-
A disk that has the multi-attach feature enabled can be attached to multiple instances. You can query the attachment information of the disk based on the
Attachment
values in the response.
When you call an API operation by using Alibaba Cloud CLI, you must specify request parameter values of different data types in the required formats. For more information, see Parameter format overview.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ebs:DescribeDedicatedBlockStorageClusterDisks | get | *DedicatedBlockStorageCluster acs:ebs:{#regionId}:{#accountId}:dedicatedblockstoragecluster/{#DedicatedBlockStorageClusterId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the dedicated block storage cluster resides. You can call the DescribeRegions operation to query the most recent region list. | cn-heyuan |
MaxResults | long | No | The maximum number of entries to return on each page. Maximum value: 500. Default value: 10. | 10 |
NextToken | string | No | The query token. Set the value to the NextToken value returned in the previous call to the DescribeDedicatedBlockStorageClusterDisks operation. Leave this parameter empty the first time you call this operation. | AAAAAdDWBF2 |
DbscId | string | Yes | The ID of the dedicated block storage cluster. | dbsc-cn-od43bf**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "11B55F58-D3A4-4A9B-9596-342420D0****",
"NextToken": "AAAAAdDWBF2",
"Disks": {
"Disk": [
{
"DiskId": "d-bp67acfmxazb4p****",
"DiskName": "testDiskName",
"Status": "In_use",
"Type": "all",
"PerformanceLevel": "PL0",
"BdfId": "null",
"EnableAutoSnapshot": false,
"StorageSetId": "ss-i-bp1j4i2jdf3owlhe****",
"StorageSetPartitionNumber": 11,
"DeleteAutoSnapshot": false,
"StorageClusterId": "dbsc-j5e1sf2vaf5he8m2****",
"Encrypted": false,
"MountInstanceNum": 1,
"Description": "testDescription",
"Device": "/dev/xvdb",
"Portable": false,
"ImageId": "m-bp13aqm171qynt3u***",
"KMSKeyId": "0e478b7a-4262-4802-b8cb-00d3fb40****",
"DeleteWithInstance": true,
"DetachedTime": "2021-06-07T21:01:22Z",
"SourceSnapshotId": "s-bp67acfmxazb4p****",
"InstanceId": "i-bp67acfmxazb4q****",
"Size": 60,
"RegionId": "cn-heyuan",
"ZoneId": "cn-heyuan-i",
"AttachedTime": "2021-06-07T06:08:56Z",
"Category": "cloud_essd",
"MultiAttach": "Disabled",
"Tags": [
{
"TagValue": "TestValue",
"TagKey": "TestKey"
}
],
"DiskChargeType": "PrePaid",
"IOPS": 4000,
"Throughput": 350,
"ProvisionedIops": 50000,
"BurstingEnabled": true
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden | User is not authorized to operate. | You are not authorized to manage the resource. Check the account permissions or contact the Alibaba Cloud account. |
403 | Forbidden.Action | User is not authorized to operate this action. | You are not authorized to perform this operation. Check the account permissions or contact the Alibaba Cloud account. |
404 | NoSuchResource | The specified resource does not exist. | The specified resource does not exist. |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error has occurred. |
504 | RequestTimeout | The request is timeout, please try again later. | The request has timed out. Try again later. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-04-06 | The response structure of the API has changed | View Change Details |