Tous les produits
Search
Centre de documentation

:QueryApplicationStatus

Dernière mise à jour :Aug 06, 2026

Consulte l'état d'une application.

Testez maintenant

Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.

Test

Autorisation RAM

Le tableau ci-dessous décrit les autorisations nécessaires pour appeler cette API. Vous pouvez les définir dans une politique Resource Access Management (RAM). Les colonnes du tableau sont détaillées ci-dessous :

  • Action : les actions peuvent être utilisées dans l'élément Action des instructions de politique de permissions RAM pour accorder les autorisations nécessaires à l'exécution de l'opération.

  • API : l'API que vous pouvez appeler pour exécuter l'action.

  • Niveau d'accès : le niveau d'accès prédéfini accordé pour chaque API. Valeurs valides : create, list, get, update et delete.

  • Type de ressource : le type de ressource qui prend en charge l'autorisation pour exécuter l'action. Il indique si l'action prend en charge les permissions au niveau de la ressource. La ressource spécifiée doit être compatible avec l'action. Sinon, la politique sera inefficace.

    • Pour les API avec permissions au niveau de la ressource, les types de ressource requis sont marqués d'un astérisque (*). Spécifiez l'Alibaba Cloud Resource Name (ARN) correspondant dans l'élément Resource de la politique.

    • Pour les API sans permissions au niveau de la ressource, la valeur All Resources est affichée. Utilisez un astérisque (*) dans l'élément Resource de la politique.

  • Clé de condition : les clés de condition définies par le service. La clé permet un contrôle granulaire, applicable aux actions seules ou aux actions associées à des ressources spécifiques. En plus des clés de condition propres au service, Alibaba Cloud fournit un ensemble de clés de condition communes applicables à tous les services pris en charge par RAM.

  • Action dépendante : les actions dépendantes requises pour exécuter l'action. Pour mener à bien l'opération, l'utilisateur RAM ou le rôle RAM doit disposer des permissions pour toutes les actions dépendantes.

edas:ReadApplication

get

*Application

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

Aucune Aucune

Syntaxe de la requête

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

Paramètres de requête

Paramètre

Type

Requis

Description

Exemple

AppId

string

Oui

L'identifiant de l'application.

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

Éléments de réponse

Élément

Type

Description

Exemple

object

Le contenu retourné.

Code

integer

Le code d'état HTTP retourné.

200

Message

string

Les informations supplémentaires retournées.

success

RequestId

string

L'identifiant de la requête.

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

AppInfo

object

Les informations sur l'application.

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

Les informations de base sur l'application.

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-****-************

Exemples

JSON format

{
  "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-****-************"
    }
  }
}

Codes d'erreur

Consultez Codes d'erreurCodes d'erreur pour la liste complète.

Notes de version

Consultez Notes de versionNotes de version pour la liste complète.