Queries Elastic Compute Container (ECC) information for an application.
Debugging
Request headers
This operation uses only the common request header. For more information, see Common request parameters.
Request syntax
POST /pop/v5/resource/ecc_list HTTPS|HTTP
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 74ee9166-****1f6-bcb60e5b10a2 |
The ID of the application. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The HTTP status code. |
EccInfoList | Array of EccInfo |
A list of ECCs. |
|
EccInfo | |||
AppId | String | 74ee9166-****1f6-bcb60e5b10a2 |
The ID of the application. |
AppState | Integer | 7 |
The status of the application. Valid values:
|
CreateTime | Long | 1610433016542 |
The time when the application was created. |
EccId | String | 74ee9166-****1f6-bcb60e5b10a2 |
ECC ID |
EcuId | String | 74ee9166-****1f6-bcb60e5b10a2 |
ECU ID |
EnvTag | String | grey |
The tag used to mark the traffic when end-to-end traffic adjustment is enabled. |
GroupId | String | 74ee9166-****1f6-bcb60e5b10a2 |
The ID of the application instance group. |
Ip | String | 172.16.1.216 |
The IP address of the ECC. |
NetMode | String | 0 |
The type of the network. |
PackageMd5 | String | 74ee9166-****1f6-bcb60e5b10a2 |
The MD5 value of the deployment package. |
PackageVersion | String | 1.0 |
The version of the deployment package. |
Status | Integer | 8 |
The status of the ECC. Valid values:
|
TaskState | Integer | 3 |
The status of the task in the ECC.
|
UpdateTime | Long | 1610433016542 |
The time when the application was updated. |
VpcId | String | vpc-bp1ry****lbl3rgs |
VPC ID |
Message | String | success |
The response message. |
RequestId | String | b197-40ab-9155-**** |
The ID of the request. |
Examples
Sample requests
POST /pop/v5/resource/ecc_list HTTP/1.1
Common request parameters
{
"AppId": "74ee9166-****1f6-bcb60e5b10a2"
}
Sample success responses
XML
format
<EccInfoList>
<EccInfo>
<Status>8</Status>
<NetMode>0</NetMode>
<Ip>172.16.1.216</Ip>
<CreateTime>1610433016542</CreateTime>
<PackageMd5>74ee9166-****1f6-bcb60e5b10a2</PackageMd5>
<EcuId>74ee9166-****1f6-bcb60e5b10a2</EcuId>
<PackageVersion>1.0</PackageVersion>
<EnvTag>grey</EnvTag>
<GroupId>74ee9166-****1f6-bcb60e5b10a2</GroupId>
<VpcId>vpc-bp1ry****lbl3rgs</VpcId>
<AppId>74ee9166-****1f6-bcb60e5b10a2</AppId>
<UpdateTime>1610433016542</UpdateTime>
<EccId>74ee9166-****1f6-bcb60e5b10a2</EccId>
<AppState>7</AppState>
<TaskState>3</TaskState>
</EccInfo>
</EccInfoList>
<RequestId>b197-40ab-9155-****</RequestId>
<Message>success</Message>
<Code>200</Code>
JSON
format
{
"EccInfoList": {
"EccInfo": {
"Status": 8,
"NetMode": 0,
"Ip": "172.16.1.216",
"CreateTime": 1610433016542,
"PackageMd5": "74ee9166-****1f6-bcb60e5b10a2",
"EcuId": "74ee9166-****1f6-bcb60e5b10a2",
"PackageVersion": 1,
"EnvTag": "grey",
"GroupId": "74ee9166-****1f6-bcb60e5b10a2",
"VpcId": "vpc-bp1ry****lbl3rgs",
"AppId": "74ee9166-****1f6-bcb60e5b10a2",
"UpdateTime": 1610433016542,
"EccId": "74ee9166-****1f6-bcb60e5b10a2",
"AppState": 7,
"TaskState": 3
}
},
"RequestId": "b197-40ab-9155-****",
"Message": "success",
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.