Todos os produtos
Search
Central de documentação

Enterprise Distributed Application Service:QueryApplicationStatus

Última atualização: Jun 28, 2026

Consulta o status de uma aplicação.

Experimente agora

Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.

Testar

Autorização RAM

A tabela abaixo descreve a autorização necessária para chamar esta API. Você pode defini-la em uma política do Resource Access Management (RAM). As colunas da tabela estão detalhadas abaixo:

  • Ação: As ações que podem ser usadas no elemento Action das instruções de política de permissão do RAM para conceder permissões para executar a operação.

  • API: A API que você pode chamar para executar a ação.

  • Nível de acesso: O nível de acesso predefinido concedido para cada API. Valores válidos: create, list, get, update e delete.

  • Tipo de recurso: O tipo de recurso que suporta autorização para executar a ação. Indica se a ação suporta permissão em nível de recurso. O recurso especificado deve ser compatível com a ação. Caso contrário, a política será ineficaz.

    • Para APIs com permissões em nível de recurso, os tipos de recursos obrigatórios são marcados com um asterisco (*). Especifique o Nome de Recurso Alibaba Cloud (ARN) correspondente no elemento Resource da política.

    • Para APIs sem permissões em nível de recurso, é exibido como Todos os Recursos. Use um asterisco (*) no elemento Resource da política.

  • Chave de condição: As chaves de condição definidas pelo serviço. A chave permite controle granular, aplicando-se somente a ações ou a ações associadas a recursos específicos. Além das chaves de condição específicas do serviço, o Alibaba Cloud fornece um conjunto de chaves de condição comuns aplicáveis a todos os serviços compatíveis com RAM.

  • Ação dependente: As ações dependentes necessárias para executar a ação. Para concluir a ação, o usuário RAM ou a função RAM deve ter permissões para executar todas as ações dependentes.

Ação

Nível de acesso

Tipo de recurso

Chave de condição

Ação dependente

edas:ReadApplication

get

*Application

acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}

Nenhuma Nenhuma

Sintaxe da solicitação

GET /pop/v5/app/app_status HTTP/1.1

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

AppId

string

Sim

O ID da aplicação.

3616cdca-4f92-441**************

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

O conteúdo retornado.

Code

integer

O código de status HTTP retornado.

200

Message

string

As informações adicionais retornadas.

success

RequestId

string

O ID da solicitação.

D16979DC-4D42-********

AppInfo

object

As informações sobre a aplicação.

EcuList

object

Ecu

array<object>

The information about elastic compute units (ECUs).

object

The details of the ECU.

VpcId

string

The ID of the virtual private cloud (VPC).

vpc-wz9b246zg************

UpdateTime

integer

The time when the ECU was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573635952012

IpAddr

string

The private IP address of the ECU.

172.16.*.**

AvailableCpu

integer

The number of available CPU cores.

0

CreateTime

integer

The time when the ECU was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573626207270

UserId

string

The ID of the user associated with the ECU.

edas_com***_****@******-*****.***

InstanceId

string

The ID of the instance.

i-wz9fp1ljg***********

RegionId

string

The ID of the region.

cn-shen****-*

EcuId

string

The unique ID of the ECU. You can run the dmidecode command on the ECS instance to query the ECU ID.

07bd417a-b863-477d-****-************

GroupId

string

The ID of the group.

8123db90-880f-486f-****-************

DockerEnv

boolean

Indicates whether Docker is installed.

false

Online

boolean

Indicates whether the ECU is online.

true

AvailableMem

integer

The size of the available memory.

0

ZoneId

string

The ID of the zone.

cn-shen****-*

Name

string

The name of the ECU.

EDAS-scaled-cluster: default cluster

HeartbeatTime

integer

The time when the last heartbeat detection was performed. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573635952012

EccList

object

Ecc

array<object>

The information about elastic compute containers (ECCs).

object

The details of the ECC.

VpcId

string

The ID of the VPC.

vpc-wz9b246zg************

UpdateTime

integer

The time when the ECC was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573635952012

EcuId

string

The unique ID of the ECU.

07bd417a-b863-477d-****-************

EccId

string

The unique ID of the ECC.

0cf49a6c-95a8-4aa8-****-************

GroupId

string

The ID of the instance group.

8123db90-880f-486f-****-************

AppState

integer

The status of the application instance. Valid values:

  • 0: AGENT_OFF: indicates that the agent is offline.

  • 1: STOPPED: indicates that the application is stopped.

  • 3: RUNNING_BUT_URL_FAILED: indicates that the health check failed.

  • 7: RUNNING: indicates that the application is running.

7

TaskState

integer

The state of the latest task initiated on the application instance. Valid values:

  • 0: UNKNOWN: indicates that the state of the latest task is unknown.

  • 1: PROCESSING: indicates that the latest task is being processed.

  • 2: SUCCESS: indicates that the latest task is executed.

  • 3: FAILED: indicates that the latest task failed.

3

CreateTime

integer

The time when the ECC was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573626226691

AppId

string

The ID of the application.

3616cdca-4f92-4413-****-************

ContainerStatus

string

The status of the container.

“”

Ip

string

The private IP address of the ECU.

172.16.*.***

GroupList

object

Group

array<object>

The information about the instance groups.

object

The details of the instance group.

UpdateTime

integer

The time when the instance group was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573627441388

GroupName

string

The name of the instance group.

_DEFAULT_GROUP

GroupId

string

The ID of the instance group.

8123db90-880f-486f-****-************

CreateTime

integer

The time when the instance group was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573626155185

AppVersionId

string

The ID of the change process for application deployment in the instance group.

changeorder_a**_*******_**

AppId

string

The ID of the application.

3616cdca-4f92-4413-****-************

PackageVersionId

string

The version of the deployment package that was used to deploy an application in the instance group.

441beb18-da42-44dc-****-************

GroupType

integer

The type of the instance group. Valid values:

  • 0: default group

  • 1: self-managed group

  • 2: canary release group

0

ClusterId

string

The ID of the cluster.

0d247b93-8d62-4e34-****-************

DeployRecordList

object

DeployRecord

array<object>

The information about deployment records.

object

The details of deployment records.

EccId

string

The unique ID of the ECC.

0cf49a6c-95a8-4aa8-****-************

EcuId

string

The unique ID of the ECU.

07bd417a-b863-477d-****-************

PackageMd5

string

The MD5 hash value of the deployment package.

d0db5bcb442e492104d0f00e10a03dd9

CreateTime

integer

The time when the deployment record was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573626226691

PackageVersionId

string

The version of the deployment package that was used to deploy an application in the instance group.

441beb18-da42-44dc-****-************

DeployRecordId

string

The ID of the deployment record.

bbc6c0d5-d792-4907-****-************

Application

object

As informações básicas sobre a aplicação.

HealthCheckUrl

string

The health check URL.

“”

Owner

string

The ID of the user who created the application.

edas_com***_****@******-*****.***

CreateTime

integer

The time when the application was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1573626207270

UserId

string

The ID of the Alibaba Cloud account.

edas_com***_****@******-*****.***

Port

integer

The port used by the application.

8080

RunningInstanceCount

integer

The number of application instances that are running.

1

Phone

string

The mobile number of the user who created the application.

1886666****

RegionId

string

The ID of the namespace.

cn-shenzhen:test

BuildPackageId

integer

The build package number of Enterprise Distributed Application Service (EDAS) Container.

0

Dockerize

boolean

Indicates whether the application is a Docker application.

false

Email

string

The email address of the user who created the application.

1234567@qq.com

Cpu

integer

The number of CPU cores used by the application.

0

InstanceCount

integer

The number of application instances.

1

LaunchTime

integer

The time when the application was launched. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

0

Memory

integer

The memory size.

0

Name

string

The name of the application.

EDAS-scaled-cluster:默认集群

ApplicationId

string

The ID of the application.

3616cdca-4f92-4413-****-************

ClusterId

string

The ID of the cluster.

0d247b93-8d62-4e34-****-************

Exemplos

Resposta de sucesso

JSON formato

{
  "Code": 200,
  "Message": "success",
  "RequestId": "D16979DC-4D42-********",
  "AppInfo": {
    "EcuList": {
      "Ecu": [
        {
          "VpcId": "vpc-wz9b246zg************",
          "UpdateTime": 1573635952012,
          "IpAddr": "172.16.*.**",
          "AvailableCpu": 0,
          "CreateTime": 1573626207270,
          "UserId": "edas_com***_****@******-*****.***",
          "InstanceId": "i-wz9fp1ljg***********",
          "RegionId": "cn-shen****-*",
          "EcuId": "07bd417a-b863-477d-****-************",
          "GroupId": "8123db90-880f-486f-****-************",
          "DockerEnv": false,
          "Online": true,
          "AvailableMem": 0,
          "ZoneId": "cn-shen****-*",
          "Name": "EDAS-scaled-cluster: default cluster",
          "HeartbeatTime": 1573635952012
        }
      ]
    },
    "EccList": {
      "Ecc": [
        {
          "VpcId": "vpc-wz9b246zg************",
          "UpdateTime": 1573635952012,
          "EcuId": "07bd417a-b863-477d-****-************",
          "EccId": "0cf49a6c-95a8-4aa8-****-************",
          "GroupId": "8123db90-880f-486f-****-************",
          "AppState": 7,
          "TaskState": 3,
          "CreateTime": 1573626226691,
          "AppId": "3616cdca-4f92-4413-****-************",
          "ContainerStatus": "“”",
          "Ip": "172.16.*.***"
        }
      ]
    },
    "GroupList": {
      "Group": [
        {
          "UpdateTime": 1573627441388,
          "GroupName": "_DEFAULT_GROUP",
          "GroupId": "8123db90-880f-486f-****-************",
          "CreateTime": 1573626155185,
          "AppVersionId": "changeorder_a**_*******_**",
          "AppId": "3616cdca-4f92-4413-****-************",
          "PackageVersionId": "441beb18-da42-44dc-****-************",
          "GroupType": 0,
          "ClusterId": "0d247b93-8d62-4e34-****-************"
        }
      ]
    },
    "DeployRecordList": {
      "DeployRecord": [
        {
          "EccId": "0cf49a6c-95a8-4aa8-****-************",
          "EcuId": "07bd417a-b863-477d-****-************",
          "PackageMd5": "d0db5bcb442e492104d0f00e10a03dd9",
          "CreateTime": 1573626226691,
          "PackageVersionId": "441beb18-da42-44dc-****-************",
          "DeployRecordId": "bbc6c0d5-d792-4907-****-************"
        }
      ]
    },
    "Application": {
      "HealthCheckUrl": "“”",
      "Owner": "edas_com***_****@******-*****.***",
      "CreateTime": 1573626207270,
      "UserId": "edas_com***_****@******-*****.***",
      "Port": 8080,
      "RunningInstanceCount": 1,
      "Phone": "1886666****",
      "RegionId": "cn-shenzhen:test",
      "BuildPackageId": 0,
      "Dockerize": false,
      "Email": "1234567@qq.com",
      "Cpu": 0,
      "InstanceCount": 1,
      "LaunchTime": 0,
      "Memory": 0,
      "Name": "EDAS-scaled-cluster:默认集群",
      "ApplicationId": "3616cdca-4f92-4413-****-************",
      "ClusterId": "0d247b93-8d62-4e34-****-************"
    }
  }
}

Códigos de erro

Consulte Códigos de ErroCódigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de VersãoNotas de Versão para uma lista completa.