You can call ListClusterOperation operation to query the actions that are taken on a cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListClusterOperation |
The operation that you want to perform. Set the value to ListClusterOperation. |
ClusterId | String | Yes | C-F32FB31D8295**** |
The ID of the cluster. You can call ListClusters The ID of the cluster. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region. You can call DescribeRegions View the latest Alibaba Cloud region list. |
ServiceName | String | No | YARN |
The name of the service. |
Status | String | No | SUCCESS |
The status of the task. Valid values:
|
PageNumber | Integer | No | 1 |
The number of the page to return. |
PageSize | Integer | No | 10 |
The number of entries to return on each page. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ClusterOperationList | Array of ClusterOperation |
The actions that are performed in the cluster. |
|
ClusterOperation | |||
Comment | String | Create cluster |
The comment for the action. |
Duration | String | 303 |
The duration of the action. |
OperationId | String | 41027 |
The ID of the operation. |
OperationName | String | CREATE |
The name of the action. |
Percentage | String | 100 |
The progress (%) of the action. |
StartTime | String | 1543312720000 |
The time when the action started. |
Status | String | SUCCESS |
The status of the action. |
PageNumber | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 10 |
The number of entries returned per page. |
RequestId | String | DF202AC2-5D5D-4288-B608-B7B1595B5C7C |
The ID of the request. |
TotalCount | Integer | 1 |
The total number of entries that are returned. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListClusterOperation
&ClusterId=C-F32FB31D8295****
&RegionId=cn-hangzhou
&<common request parameters>
Sample success responses
XML
format
<ListClusterOperationResponse>
<ClusterOperationList>
<ClusterOperation>
<Status>SUCCESS</Status>
<Comment>Create cluster</Comment>
<Percentage>100</Percentage>
<OperationName>CREATE</OperationName>
<OperationId>41027</OperationId>
<StartTime>1543312720000</StartTime>
<Duration>303</Duration>
</ClusterOperation>
</ClusterOperationList>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<RequestId>FB29CC76-D7DC-4A08-AE96-E1F96F9FFC4E</RequestId>
<PageNumber>1</PageNumber>
</ListClusterOperationResponse>
JSON
format
{
"PageNumber":1,
"TotalCount":1,
"PageSize":10,
"RequestId":"FB29CC76-D7DC-4A08-AE96-E1F96F9FFC4E",
"ClusterOperationList":{
"ClusterOperation":[
{
"Percentage":"100",
"Status":"SUCCESS",
"Duration":"303",
"OperationId":"41027",
"Comment":"Create cluster",
"StartTime":"1543312720000",
"OperationName":"CREATE"
}
]
}
}