You can call this operation to query Elastic Compute Units (ECUs) that are available for deploying applications.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
POST /pop/v5/resource/ecu_list HTTPS|HTTP
Request parameters
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
RequestId | String | b197-40ab-9155-7ca7 | Request ID. |
EcuInfoList | Array |
The returned list of ECUs. |
|
EcuId | String | b197-40ab-9155-**** |
The ID of the ECU returned. To query the ECU ID, you can run dmidecode on the Elastic Compute Service (ECS) instance corresponding to the ECU. |
Online | Boolean | true |
Indicates whether the returned ECU is available. |
DockerEnv | Boolean | true |
Indicates whether Docker is installed on the ECS instance corresponding to the ECU returned. |
CreateTime | Long | 12345678 |
The time when the ECU was created. |
UpdateTime | Long | 12345667 |
The time when the ECU was updated. |
IpAddr | String | 192.XX.XX.23 |
The intranet IP address allocated to the ECU returned. |
HeartbeatTime | Long | 1 |
The heartbeat time of the ECU returned. |
UserId | String | b197-40ab-9155-**** |
The ID of the user associated with the ECU returned. |
Name | String | test |
The name of the ECU returned. |
ZoneId | String | b197-40ab-9155-**** |
The ID of the zone where the returned ECU is located. |
RegionId | String | cn-beijing |
The ID of the region where the returned ECU is located. |
InstanceId | String | b197-40ab-9155-**** |
The ID of the ECS instance corresponding to the ECU returned. |
VpcId | String | b197-**** |
The ID of the VPC where the ECS instance corresponding to the returned ECU is located. |
AvailableCpu | Integer | 1 |
The number of available CPUs in the ECU returned. |
AvailableMem | Integer | 200 |
The amount of available memory in the ECU returned. Unit: MB |
Cpu | Integer | 1 |
The total number of CPUs in the ECU returned. |
Mem | Integer | 500 |
The total amount of memory in the ECU returned. Unit: MB |
Examples
Sample requests
POST /pop/v5/resource/ecu_list HTTP/1.1
Common request headers
Sample success responses
JSON
format
{
"EcuInfoList": {
"EcuEntity": []
},
"Message": "success",
"Code": 200
}
XML
format
<EcuInfoList>
</EcuInfoList>
<Message>success</Message>
<Code>200</Code>
Error codes
For a list of error codes, visit the API Error Center.