You can call ListFlowNodeInstanceContainerStatus operation to query the status of containers that run on a node instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListFlowNodeInstanceContainerStatus |
The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to ListFlowNodeInstanceContainerStatus. |
NodeInstanceId | String | Yes | FNI-FE4BD156E939**** |
The ID of the ECS instance that is added to the ACK cluster. You can call ListFlowNodeInstance View the ID of the node instance. |
ProjectId | String | Yes | FP-AC84F265C8E4**** |
The ID of the project. You can call ListFlowProject View the ID of the project. |
RegionId | String | Yes | cn-hangzhou |
The region ID. You can call DescribeRegions To view the latest list of Alibaba Cloud regions. |
PageNumber | Integer | No | 1 |
The number of the page to return. Pages start from page 1. |
PageSize | Integer | No | 20 |
The number of entries returned on each page. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ContainerStatusList | Array of ContainerStatus |
The list of the status of containers. |
|
ContainerStatus | |||
ApplicationId | String | application_1542333181298_0016 |
The ID of the application. |
ContainerId | String | container_1542333181298_0016_01_000015 |
The ID of the container. |
HostName | String | 192.168.xx.xx |
The host name, emr-worker-1. |
Status | String | KILLED |
Container status:
|
PageNumber | Integer | 1 |
The number of the page to return. Pages start from page 1. |
PageSize | Integer | 20 |
The number of automatic snapshot tasks returned per page. |
RequestId | String | E82E504E-F1A8-4D05-AA8F-360BD9DF423A |
The ID of the request. |
Total | Integer | 1 |
The total number of entries returned. |
Examples
Sample request
http(s)://[Endpoint]/?Action=ListFlowNodeInstanceContainerStatus
&NodeInstanceId=FNI-FE4BD156E939****
&ProjectId=FP-AC84F265C8E4****
&RegionId=cn-hangzhou
&<common request parameters>
Sample success responses
XML
format
<PageSize>200</PageSize>
<RequestId>E82E504E-F1A8-4D05-AA8F-360BD9DF423A</RequestId>
<PageNumber>1</PageNumber>
<Total>1</Total>
<ContainerStatusList>
<ContainerStatus>
<Status>KILLED</Status>
<ContainerId>container_1542333181298_0016_01_000015</ContainerId>
<ApplicationId>application_1542333181298_0016</ApplicationId>
<HostName>192.168.128.53</HostName>
</ContainerStatus>
</ContainerStatusList>
JSON
Syntax
{
"PageSize": 200,
"RequestId": "E82E504E-F1A8-4D05-AA8F-360BD9DF423A",
"PageNumber": 1,
"Total": 1,
"ContainerStatusList": {
"ContainerStatus": [
{
"Status": "KILLED",
"ContainerId": "container_1542333181298_0016_01_000015",
"ApplicationId": "application_1542333181298_0016",
"HostName": "192.168.128.53"
}
]
}
}