All Products
Search
Document Center

Enterprise Distributed Application Service:QueryApplicationStatus

Last Updated:Jun 10, 2026

Mengkueri status aplikasi.

Coba sekarang

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

edas:ReadApplication

get

*Application

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

None None

Sintaks permintaan

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

Parameter permintaan

Parameter

Type

Required

Description

Example

AppId

string

Yes

ID aplikasi.

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

Elemen respons

Element

Type

Description

Example

object

The content that is returned.

Code

integer

The HTTP status code that is returned.

200

Message

string

The additional information that is returned.

success

RequestId

string

The ID of the request.

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

AppInfo

object

The information about the 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:默认集群

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

The basic information about the 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-****-************

Contoh

Respons sukses

JSONformat

{
  "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:默认集群",
          "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-****-************"
    }
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat 变更详情Release Notes untuk daftar lengkap.