Retrieves a list of application instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeApplicationInstances |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/app/describeApplicationInstances HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. |
d700e680-aa4d-4ec1-afc2-6566b5ff**** |
| GroupId |
string |
Yes |
The ID of the application group. Call the DescribeApplicationGroups operation to obtain the ID. |
b2a8a925-477a-4ed7-b825-d5e22500**** |
| CurrentPage |
integer |
No |
The current page number. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page for a paged query. The default value is 10. The value must be in the range of (0, 1000000000). |
10 |
| Reverse |
boolean |
No |
The order in which to sort the application instances. The instances are first sorted by their running status. If their statuses are the same, they are then sorted by instance ID. Valid values:
The ascending order of instance statuses is as follows:
|
true |
| InstanceId |
string |
No |
The application instance ID. |
demo-faaca66c-5959-45cc-b3bf-d26093b2e9c0****** |
| PipelineId |
string |
No |
The batch ID. Call the DescribeChangeOrder operation to obtain the ID. |
85750d48-6cfc-4dbf-8ea0-840397****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The additional information returned. |
success |
| TraceId |
string |
The trace ID, which is used for term queries. |
0a98a02315955564772843261e**** |
| Data |
object |
The information about the application instances. |
|
| CurrentPage |
integer |
The current page number. |
1 |
| TotalSize |
integer |
The total number of instances. |
10 |
| PageSize |
integer |
The number of entries returned per page in a paged query. |
10 |
| Instances |
array<object> |
The list of application instances. |
|
|
array<object> |
The list of application instances. |
||
| CreateTimeStamp |
integer |
The timestamp when the instance started to be created. Unit: milliseconds. |
1558442609000 |
| VSwitchId |
string |
The zone where the instance is located. |
vsw-*** |
| InstanceContainerStatus |
string |
The running status of the instance. Valid values:
|
Running |
| InstanceHealthStatus |
string |
The health check status. Valid values:
|
WithoutHealthCheckConfig |
| InstanceContainerRestarts |
integer |
The number of times the instance has been restarted. |
0 |
| GroupId |
string |
The ID of the group to which the instance belongs. |
b2a8a925-477a-4ed7-b825-d5e22500**** |
| InstanceContainerIp |
string |
The internal IP address of the instance. |
192.168.X.X |
| InstanceId |
string |
The instance ID. |
b2a8a925-477a-4ed7-b825-d5e22500**** |
| ImageUrl |
string |
The address of the image repository. Note
If you deploy the application using a JAR or WAR package, the image generated by the SAE platform cannot be downloaded. |
registry-vpc.cn-beijing.aliyuncs.com/sae-demo-image/cartservice:1.0 |
| PackageVersion |
string |
The version information. |
1609939496200 |
| Timestamp |
integer |
The timestamp. |
1750061980000 |
| Eip |
string |
The Elastic IP Address (EIP). |
8.129.XX.XXX |
| FinishTimeStamp |
integer |
The timestamp when the instance creation was complete. Unit: milliseconds. |
1642757283000 |
| DebugStatus |
boolean |
Indicates whether the instance is being debugged. Valid values:
|
False |
| SidecarContainersStatus |
array<object> |
The status of the sidecar containers. |
|
|
object |
The status of the sidecar containers. |
||
| ContainerId |
string |
The ID of the sidecar container. |
sidecar-test-01 |
| ContainerStatus |
string |
The status of the container. |
Running |
| ImageUrl |
string |
The image address. |
registry.cn-beijing.aliyuncs.com/sae-dev-test/****** |
| MainContainerStatus |
string |
The status of the main container. |
Running |
| UnhealthyMessage |
string |
If the health check of the application instance fails, this field returns the specific cause or error message. If the health check is successful, this field is empty. |
空 |
| TrafficStatus |
string |
||
| Tags |
array<object> |
||
|
object |
|||
| Key |
string |
||
| Value |
string |
||
| ErrorCode |
string |
The error code. Valid values:
|
空 |
| Code |
string |
The status of the API call or the POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the API call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"CurrentPage": 1,
"TotalSize": 10,
"PageSize": 10,
"Instances": [
{
"CreateTimeStamp": 1558442609000,
"VSwitchId": "vsw-***",
"InstanceContainerStatus": "Running",
"InstanceHealthStatus": "WithoutHealthCheckConfig",
"InstanceContainerRestarts": 0,
"GroupId": "b2a8a925-477a-4ed7-b825-d5e22500****",
"InstanceContainerIp": "192.168.X.X",
"InstanceId": "b2a8a925-477a-4ed7-b825-d5e22500****",
"ImageUrl": "registry-vpc.cn-beijing.aliyuncs.com/sae-demo-image/cartservice:1.0",
"PackageVersion": "1609939496200",
"Timestamp": 1750061980000,
"Eip": "8.129.XX.XXX",
"FinishTimeStamp": 1642757283000,
"DebugStatus": true,
"SidecarContainersStatus": [
{
"ContainerId": "sidecar-test-01",
"ContainerStatus": "Running",
"ImageUrl": "registry.cn-beijing.aliyuncs.com/sae-dev-test/******"
}
],
"MainContainerStatus": "Running",
"UnhealthyMessage": "空",
"TrafficStatus": "",
"Tags": [
{
"Key": "",
"Value": ""
}
]
}
]
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.