ReportInstancesStatus
Reports exceptions for one or more Elastic Compute Service (ECS) instances. You can report the same exception that occurs on multiple ECS instances or multiple disks of a single ECS instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ReportInstancesStatus |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| Reason |
string |
No |
The impact of the exception on the ECS instance. Valid values:
|
abnormal-local-disk |
| Description |
string |
Yes |
The detailed description of the exception. |
The local disk is unavailable, access to the mount point is denied, and files cannot be loaded |
| StartTime |
string |
No |
The start time of the instance failures. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-11-30T06:32:31Z |
| EndTime |
string |
No |
The end time of the instance failures. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-11-31T06:32:31Z |
| IssueCategory |
string |
No |
The category of the exception. This parameter is applicable only to ECS Bare Metal instances. Valid values:
|
hardware-cpu-error |
| InstanceId |
array |
Yes |
The IDs of the ECS instances. You can specify up to 100 instance IDs. |
i-bp165p6xk2tmdhj0**** |
|
string |
No |
The ECS instance ID. |
i-bp165p6xk2tmdhj0**** |
|
| DiskId |
array |
No |
The IDs of the disks that have the same exception. You can specify up to 100 disk IDs. If you use ECS Bare Metal instances, specify the serial numbers (SNs) of the disk devices. Note
This parameter is required when the Reason parameter is set to abnormal-local-disk or abnormal-cloud-disk, or when the IssueCategory parameter is set to hardware-disk-error. |
d-bp1aeljlfad7x6u1**** |
|
string |
No |
The ID of the disk. |
d-bp1aeljlfad7x6u1**** |
|
| Device |
array |
No |
The device names of the attached disks that have the same exception. You can specify up to 100 device names. If you use ECS Bare Metal instances, specify the slot information of the disk devices. Note
For ECS Bare Metal instances, this parameter is required when the Reason parameter is set to abnormal-local-disk or abnormal-cloud-disk, or when the IssueCategory parameter is set to hardware-disk-error. |
/dev/xvdb |
|
string |
No |
The device name. |
/dev/xvdb |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | InvalidParameter | %s | |
| 403 | InstanceIdLimitExceeded | %s | More than 100 instance IDs are specified. |
| 403 | DiskIdLimitExceeded | %s | More than 100 disk IDs are specified. |
| 403 | InvalidInstanceId.NotFound | %s | The specified instance does not exist. Check whether the InstanceId parameter is valid. |
| 404 | MissingParameter | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.