Queries the status of simple application servers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:ListInstanceStatus |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the simple application servers. You can call the ListRegions operation to query the most recent region list. |
cn-hangzhou |
| InstanceIds |
string |
No |
The IDs of the simple application servers. The value can be a JSON array that consists of up to 100 simple application server IDs. Separate multiple server IDs with commas (,). |
["2ad1ae67295445f598017499dc****", "2ad1ae67295445f598017123dc****"] |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceStatuses |
array<object> |
The ID of the simple application server. |
|
|
object |
The status information of the instances. |
||
| Status |
string |
The status of the simple application server. Valid values:
|
Running |
| InstanceId |
string |
The ID of the simple application server. |
a9a6474b935d41bcb531250bb5d**** |
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
54 |
Examples
Success response
JSON format
{
"InstanceStatuses": [
{
"Status": "Running",
"InstanceId": "a9a6474b935d41bcb531250bb5d****"
}
],
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 54
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.