Obtém uma lista de instâncias de aplicação.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
sae:DescribeApplicationInstances |
get |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /pop/v1/sam/app/describeApplicationInstances HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| AppId |
string |
Sim |
O ID da aplicação. |
d700e680-aa4d-4ec1-afc2-6566b5ff**** |
| GroupId |
string |
Sim |
O ID do grupo de aplicações. Chame a operação DescribeApplicationGroups para obter o ID. |
b2a8a925-477a-4ed7-b825-d5e22500**** |
| CurrentPage |
integer |
Não |
O número da página a ser retornada. |
1 |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valor padrão: 10. O valor deve estar no intervalo (0, 1000000000). |
10 |
| Reverse |
boolean |
Não |
Especifica a ordem de classificação das instâncias de aplicação. As instâncias são classificadas primeiro pelo status de execução e, em seguida, pelo ID da instância. Valores válidos:
Status das instâncias em ordem crescente:
|
true |
| InstanceId |
string |
Não |
O ID da instância de aplicação. |
demo-faaca66c-5959-45cc-b3bf-d26093b2e9c0****** |
| PipelineId |
string |
Não |
O ID do lote. Chame a operação DescribeChangeOrder para obter o ID. |
85750d48-6cfc-4dbf-8ea0-840397****** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| RequestId |
string |
O ID da solicitação. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
A mensagem retornada para a solicitação. |
success |
| TraceId |
string |
O ID de rastreamento usado para consultar os detalhes da solicitação. |
0a98a02315955564772843261e**** |
| Data |
object |
As informações sobre as instâncias de aplicação. |
|
| CurrentPage |
integer |
O número da página atual. |
1 |
| TotalSize |
integer |
O número total de instâncias. |
10 |
| PageSize |
integer |
O número de entradas retornadas por página. |
10 |
| Instances |
array<object> |
A lista de instâncias de aplicação. |
|
|
array<object> |
Os detalhes de uma instância de aplicação. |
||
| CreateTimeStamp |
integer |
The time when instance creation began. Unit: milliseconds. |
1558442609000 |
| VSwitchId |
string |
The ID of the vSwitch where the instance is deployed. |
vsw-*** |
| InstanceContainerStatus |
string |
The status of the instance container. Valid values:
|
Running |
| InstanceHealthStatus |
string |
The health check status of the instance. Valid values:
|
WithoutHealthCheckConfig |
| InstanceContainerRestarts |
integer |
The number of times the instance's container has 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 URL of the container image. Nota
If you deploy an application using a JAR or WAR package, the container image generated by SAE is not available for download. |
registry-vpc.cn-beijing.aliyuncs.com/sae-demo-image/cartservice:1.0 |
| PackageVersion |
string |
The version of the deployment package. |
1609939496200 |
| Timestamp |
integer |
The timestamp. |
1750061980000 |
| Eip |
string |
The elastic IP address (EIP). |
8.129.XX.XXX |
| FinishTimeStamp |
integer |
The time when instance creation was completed. Unit: milliseconds. |
1642757283000 |
| DebugStatus |
boolean |
Whether the instance is being debugged. Valid values:
|
False |
| SidecarContainersStatus |
array<object> |
The status of the sidecar containers. |
|
|
object |
The status of a sidecar container. |
||
| ContainerId |
string |
The ID of the sidecar container. |
sidecar-test-01 |
| ContainerStatus |
string |
The status of the container. |
Running |
| ImageUrl |
string |
The URL of the container image. |
registry.cn-beijing.aliyuncs.com/sae-dev-test/****** |
| MainContainerStatus |
string |
The status of the main container. |
Running |
| UnhealthyMessage |
string |
The error message for a failed health check on the application instance. This field is empty if the check is successful. |
|
| TrafficStatus |
string |
The traffic status of the instance. |
|
| Tags |
array<object> |
The tags attached to the instance. |
|
|
object |
|||
| Key |
string |
The tag key. |
|
| Value |
string |
The tag value. |
|
| ErrorCode |
string |
O código de erro. Valores válidos:
|
|
| Code |
string |
O código de status HTTP ou código de erro POP. Valores válidos:
|
200 |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.