DescribeInstanceStatus
GET /?Action=DescribeInstanceStatus
Description
Describes the status of one or more instances.
You can use the Filter.N parameter to filter the described instances status on the following properties:
-
availability-zone: The Availability Zone of the instance. -
event.code: The code for the scheduled event (system-reboot|system-maintenance). -
event.description: The description of the scheduled event. -
instance-state-code: The state of the instance (a 16-bit unsigned integer). The high byte is an internal value you should ignore. The low byte represents the state of the instance:-1(quarantine),0(pending),16(running),32(shutting-down),48(terminated),64(stopping), and80(stopped). -
instance-state-name: The state of the instance (pending|running|stopping|stopped|shutting-down|terminated|quarantine).
|
Note
|
If you exceed the number of identical requests allowed for a configured time period, the |
Body parameter
Required: false
Name: DescribeInstanceStatusRequest
| Name | Description | Required | Schema | Default | Example |
|---|---|---|---|---|---|
Filter.N |
One or more filters. Example: |
false |
|||
IncludeAllInstances |
If set to |
false |
boolean |
||
InstanceId.N |
One or more instance IDs. |
false |
string |
||
MaxResults |
The maximum number of results that can be returned in a single page. You can use NextToken to request the next results pages. This value is between 5 and 1000. |
false |
integer |
||
NextToken |
The token to request the next results page. |
false |
integer |
Responses
HTTP Code 200
| HTTP Code | Description | Schema |
|---|---|---|
200 |
DescribeInstanceStatusResult |
Response 200
| Name | Description | Required | Schema | Default | Example |
|---|---|---|---|---|---|
instanceStatusSet.N |
One or more instance status descriptions. |
false |
|||
nextToken |
The token to request the next results page. If the value is null, there is no results left to be returned. |
false |
string |
||
requestId |
The ID of the request. |
false |
string |