All Products
Search
Document Center

Elastic Compute Service:ReportInstancesStatus

Last Updated:Sep 29, 2024

Reports an exception on Elastic Compute Service (ECS) instances. You can report the same exception on multiple ECS instances or on multiple disks of an ECS instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
ecs:ReportInstancesStatusget
  • Instance
    acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
ReasonstringNo

The impact of the exception on the instance. Valid values:

  • instance-hang: The instance is unavailable or cannot be connected.
  • instance-stuck-in-status: The instance is stuck in a state such as Starting or Stopping.
  • abnormal-network: The instance has a network exception.
  • abnormal-local-disk: A local disk attached to the instance has an exception.
  • abnormal-cloud-disk: A disk or a Shared Block Storage device attached to the instance has an exception.
  • others: other exception types. If the impact is not of the preceding types, you can set Reason to others and specify the Description parameter.
abnormal-local-disk
DescriptionstringYes

The description of the exception.

The local disk is unavailable, the mount point is inaccessible, or files cannot be loaded.
StartTimestringNo

The start time of the instance exception. 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
EndTimestringNo

The end time of the instance exception. 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
IssueCategorystringNo

The category of the exception. This parameter is applicable only to ECS bare metal instances. Valid values:

  • hardware-cpu-error: CPU failure
  • hardware-motherboard-error: motherboard failure
  • hardware-mem-error: memory failure
  • hardware-power-error: power failure
  • hardware-disk-error: disk failure
  • hardware-networkcard-error: network interface controller (NIC) failure
  • hardware-raidcard-error: SAS/RAID card failure
  • hardware-fan-error: fan failure
  • others: other failures
hardware-cpu-error
InstanceIdarrayYes

The IDs of instances. You can specify up to 100 instance IDs in a single request.

stringYes

The ID of instance N.

i-bp165p6xk2tmdhj0****
DiskIdarrayNo

The IDs of disks on an instance that have the exception. You can specify up to 100 disk IDs in a single request. If you are using an ECS bare metal instance, enter the serial numbers of disks on the instance.

Note This parameter is required when the value of the Reason parameter is abnormal-local-disk or abnormal-cloud-disk or when the value of the IssueCategory parameter is hardware-disk-error.
stringNo

The ID of disk N.

d-bp1aeljlfad7x6u1****
DevicearrayNo

The device names of disks on an instance that have the exception. You can specify to 100 device names in a single request.

If you are using an ECS bare metal instance, enter the slot numbers of disks on the instance.

Note For ECS bare metal instances, this parameter is required when the value of the Reason parameter is abnormal-local-disk or abnormal-cloud-disk or when the value of the IssueCategory parameter is hardware-disk-error.
stringNo

The device name of disk N.

/dev/xvdb

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

HTTP status codeError codeError messageDescription
403InvalidParameter%sThe specified parameter is invalid.
403InstanceIdLimitExceeded%sMore than 100 instance IDs are specified.
403DiskIdLimitExceeded%sMore than 100 disk IDs are specified.
403InvalidInstanceId.NotFound%sThe specified instance does not exist. Check whether the InstanceId parameter is valid.
404MissingParameter%sA parameter is not specified.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history