All Products
Search
Document Center

Enterprise Distributed Application Service:ListEcuByRegion

Last Updated:Mar 01, 2024

Queries the available elastic compute units (ECUs) in a specified namespace.

Operation description

Terms

  • Namespace: the logical concept that is used to isolate resources such as clusters, ECS instances, and applications, and microservices published in EDAS. This concept involves the default namespace and custom namespaces. Each region has a default namespace and supports multiple custom namespaces. By default, only the default namespace is available. You do not need to create a custom namespace if you do not want to isolate resources and microservices.
  • Elastic compute unit (ECU): After an ECS instance is imported to a cluster, the instance becomes an ECU.
  • Elastic compute container (ECC): After you deploy an application to an ECU in a cluster, the ECU becomes an ECC.

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /pop/v5/resource/ecu_list

Request parameters

ParameterTypeRequiredDescriptionExample
LogicalRegionIdstringNo

The ID of the namespace.

  • The ID of a custom namespace is in the region ID:namespace identifier format. Example: cn-beijing:tdy218.
  • The ID of the default namespace is in the region ID format. Example: cn-beijing.
cn-beijing or cn-beijing:tdy218
ActstringYes

Set the value to pop-query.

pop-query

Response parameters

ParameterTypeDescriptionExample
object

The content that is returned.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

00000000-0000-0000-****
EcuEntityListobject []

The information about ECUs.

VpcIdstring

The ID of the virtual private cloud (VPC) in which the ECU resides.

vpc-2zew8mi6gqbo5wf****
UpdateTimelong

The timestamp 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.

1572867895575
IpAddrstring

The private IP address of the ECU.

192.168.xxx.xxx
AvailableCpuinteger

The number of available CPU cores for the ECU.

4
CreateTimelong

The timestamp 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.

1572539283168
UserIdstring

The ID of the Alibaba Cloud account.

edas@aliyun-****.com
InstanceIdstring

The ID of the ECU.

i-2ze82h8f4zcn449y****
Meminteger

The total size of memory. Unit: MB.

0
RegionIdstring

The ID of the region in which the ECU resides.

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.

c96c494c-1b91-4456-bbb3-b5afcd16****
Cpuinteger

The total number of CPU cores.

0
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.
false
AvailableMeminteger

The size of available memory for the ECU. Unit: MB.

8192
ZoneIdstring

The ID of the zone in which the ECU resides.

cn-beijing-a
Namestring

The name of the ECU.

worker-k8s-for
HeartbeatTimelong

The timestamp 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.

1572867865221

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "00000000-0000-0000-****",
  "EcuEntityList": {
    "EcuEntity": [
      {
        "VpcId": "vpc-2zew8mi6gqbo5wf****",
        "UpdateTime": 1572867895575,
        "IpAddr": "192.168.xxx.xxx",
        "AvailableCpu": 4,
        "CreateTime": 1572539283168,
        "UserId": "edas@aliyun-****.com",
        "InstanceId": "i-2ze82h8f4zcn449y****",
        "Mem": 0,
        "RegionId": "cn-beijing",
        "EcuId": "c96c494c-1b91-4456-bbb3-b5afcd16****",
        "Cpu": 0,
        "DockerEnv": true,
        "Online": false,
        "AvailableMem": 8192,
        "ZoneId": "cn-beijing-a",
        "Name": "worker-k8s-for",
        "HeartbeatTime": 1572867865221
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history