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
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /pop/v5/resource/ecu_list
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
LogicalRegionId | string | No | The ID of the namespace.
| cn-beijing or cn-beijing:tdy218 |
Act | string | Yes | Set the value to | pop-query |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|
No change history