All Products
Search
Document Center

Enterprise Distributed Application Service:ListApplicationEcu

Last Updated:Mar 01, 2024

Queries elastic compute units (ECUs).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ReadApplicationRead
  • Application
    acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}
    none
none

Request syntax

POST /pop/v5/resource/ecu_list

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringNo

The ID of the application whose ECUs you want to query. You can call the ListApplication operation to query the application ID. For more information, see ListApplication .

e809****-43d7-4c6b-8e01-b0d9d1db****
LogicalRegionIdstringNo

The ID of the microservices namespace.

cn-hangzhou:***wei
  • If AppId is set, the ECUs of the specified application will be queried.
  • If AppId is not set, the ECUs in the current region will be queried.

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The ID of the request.

b197-40ab-9155-7ca7
EcuInfoListobject []

The information about ECUs.

VpcIdstring

The ID of the virtual private cloud (VPC).

vpc-2zef6ob8**********
UpdateTimelong

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

1599803995894
IpAddrstring

The internal IP address allocated to the ECU.

192.168.XXX.XXX
AvailableCpuinteger

The number of available CPU cores.

1
CreateTimelong

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

1542692376066
UserIdstring

The ID of the Alibaba Cloud account to which the ECU belongs.

****_common_****@aliyun.com
InstanceIdstring

The ID of the Elastic Compute Service (ECS) instance.

i-2zej4i2jdf*********
Meminteger

The total size of memory. Unit: MB.

500
RegionIdstring

The ID of the region.

cn-beijing
EcuIdstring

The unique ID of the ECU. To query the ID, you can run the dmidecode command on the ECS instance that corresponds to the ECU.

0de2ebdb-9490-4fc4-be41***************
Cpuinteger

The total number of CPU cores.

1
AppIdstring

The ID of the application.

e809****-43d7-4c6b-8e01-b0d9d1db****
DockerEnvboolean

Indicates whether Docker is installed. Valid values:

  • true: Docker is installed.
  • false: Docker is not installed.
true
Onlineboolean

Indicates whether the ECU is online. Valid values:

  • true: The ECU is online.
  • false: The ECU is offline.
true
AvailableMeminteger

The size of available memory. Unit: MB.

200
ZoneIdstring

The ID of the zone.

cn-beijing-h
Namestring

The name of the ECU.

test
HeartbeatTimelong

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

1573281040819

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "b197-40ab-9155-7ca7",
  "EcuInfoList": {
    "EcuEntity": [
      {
        "VpcId": "vpc-2zef6ob8**********",
        "UpdateTime": 1599803995894,
        "IpAddr": "192.168.XXX.XXX",
        "AvailableCpu": 1,
        "CreateTime": 1542692376066,
        "UserId": "****_common_****@aliyun.com",
        "InstanceId": "i-2zej4i2jdf*********",
        "Mem": 500,
        "RegionId": "cn-beijing",
        "EcuId": "0de2ebdb-9490-4fc4-be41***************",
        "Cpu": 1,
        "AppId": "e809****-43d7-4c6b-8e01-b0d9d1db****",
        "DockerEnv": true,
        "Online": true,
        "AvailableMem": 200,
        "ZoneId": "cn-beijing-h",
        "Name": "test",
        "HeartbeatTime": 1573281040819
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.