Queries the full status information of one or more block storage devices.
Operation description
-
The full status information of a block storage device includes the block storage lifecycle status (
Status), block storage health status (HealthStatus), and block storage event type (EventType). -
Because the publish time, scheduled execution time, and actual execution time of block storage-related events are the same, you can specify a time period (
EventTime.StarttoEventTime.End) to query all historical events that occurred during that period. You can query historical events from the last seven days at most.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeDisksFullStatus |
list |
Disk
Disk
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the block storage device. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| Status |
string |
No |
The lifecycle status of the block storage device. For more information, see Disk states. Valid values:
|
Available |
| HealthStatus |
string |
No |
The health status of the block storage device. Valid values:
|
Warning |
| EventType |
string |
No |
The event type of the block storage device. Valid values:
|
Stalled |
| EventTime.Start |
string |
No |
The start of the time range during which to query events. Specify the time in the ISO 8601 standard in the |
2018-05-06T02:43:10Z |
| EventTime.End |
string |
No |
The end of the time range during which to query events. Specify the time in the ISO 8601 standard in the |
2018-05-08T02:48:52Z |
| PageNumber |
integer |
No |
The page number of the query result. Valid values: positive integers. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
| DiskId |
array |
No |
The block storage ID. Valid values of N: 1 to 100. |
d-bp67acfmxazb4p**** |
|
string |
No |
The block storage ID. Valid values of N: 1 to 100. |
d-bp67acfmxazb4p**** |
|
| EventId |
array |
No |
The event ID. Valid values of N: 1 to 100. |
e-bp67acfmxazb4p**** |
|
string |
No |
The event ID. Valid values of N: 1 to 100. |
e-bp67acfmxazb4p**** |
|
| ResourceGroupId |
string |
No |
The ID of the resource group to which the block storage resource belongs. When you use this parameter to filter resources, the resource count cannot exceed 1,000. |
rg-aek2kkmhmhs**** |
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key attached to the block storage resource. N specifies that you can set one or more tag keys. The value of N in this parameter corresponds to the value of N in the If you use a single tag to filter resources, the resource count with that tag cannot exceed 1,000. If you use multiple tags to filter resources, the resource count of resources that are attached to all specified tags cannot exceed 1,000. |
TestKey |
| Value |
string |
No |
The tag value attached to the block storage resource. N specifies that you can set one or more tag values. The value of N in this parameter corresponds to the value of N in the |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of full status entries. |
2 |
| DiskFullStatusSet |
object |
||
| DiskFullStatusType |
array<object> |
The array of block storage full status entries. |
|
|
array<object> |
|||
| DiskId |
string |
The block storage ID. |
d-bp67acfmxazb4p**** |
| InstanceId |
string |
The instance ID. |
i-bp67acfmxazb4p**** |
| Device |
string |
The device name of the block storage device attached to an instance, such as /dev/xvdb. This parameter has a value only when the Note
This parameter will be deprecated. To improve code compatibility, do not use this parameter. |
null |
| DiskEventSet |
object |
||
| DiskEventType |
array<object> |
The array of block storage events. |
|
|
array<object> |
|||
| EventId |
string |
The block storage event ID. |
e-bp67acfmxazb4p**** |
| EventEndTime |
string |
The time when the event ended. The time is displayed in UTC in the ISO 8601 format. |
2018-05-06T02:48:52Z |
| EventTime |
string |
The time when the event occurred. The time is displayed in UTC in the ISO 8601 format. |
2018-05-08T02:43:10Z |
| ImpactLevel |
string |
The impact level. |
100 |
| EventType |
object |
The event type. |
|
| Name |
string |
The event type name. Valid values:
|
Stalled |
| Code |
integer |
The event type code. |
7 |
| Status |
object |
The lifecycle status of the block storage device. |
|
| Name |
string |
The name of the block storage lifecycle status. |
Available |
| Code |
integer |
The status code of the block storage lifecycle status. |
129 |
| HealthStatus |
object |
The health status of the block storage device. |
|
| Name |
string |
The name of the block storage health status. |
Impaired |
| Code |
integer |
The status code of the block storage health status. |
128 |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 2,
"DiskFullStatusSet": {
"DiskFullStatusType": [
{
"DiskId": "d-bp67acfmxazb4p****",
"InstanceId": "i-bp67acfmxazb4p****",
"Device": "null",
"DiskEventSet": {
"DiskEventType": [
{
"EventId": "e-bp67acfmxazb4p****",
"EventEndTime": "2018-05-06T02:48:52Z",
"EventTime": "2018-05-08T02:43:10Z",
"ImpactLevel": "100",
"EventType": {
"Name": "Stalled",
"Code": 7
}
}
]
},
"Status": {
"Name": "Available",
"Code": 129
},
"HealthStatus": {
"Name": "Impaired",
"Code": 128
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | InvalidParameter | %s | |
| 403 | DiskIdLimitExceeded | %s | More than 100 disk IDs are specified. |
| 403 | EventIdLimitExceeded | %s | |
| 403 | InvalidParameter.TimeEndBeforeStart | %s | The specified parameter is invalid. Make sure that the end time is later than the start time. |
| 403 | OperationDenied.NotInWhiteList | %s | You are not authorized to perform this operation. Try again when you are authorized. |
| 403 | TooManyDiskEvent.DiskIdRequired | %s | The system cannot process this number of requests for the specified resource. Try again later. |
| 404 | MissingParameter | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.