You can call ListClusterOperationTask operation to query the tasks of the cluster on which a specific action is taken.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListClusterOperationTask |
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 ListClusterOperationTask. |
ClusterId | String | Yes | C-E71BCCAF7F6F**** |
The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster. |
OperationId | String | Yes | 83586 |
The ID of the action. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions. |
Status | String | No | COMPLETED |
Indicates whether the operation was successful. Valid values:
|
PageNumber | Integer | No | 1 |
You can call this operation to query the page number by page. |
PageSize | Integer | No | 10 |
You can call this operation to query the number of records on each page. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ClusterOperationTaskList | Array of ClusterOperationTask |
The Task list of the specified OperationHistory. |
|
ClusterOperationTask | |||
Percentage | String | 100 |
The progress (%) of the task. |
Status | String | COMPLETED |
Execution status:
|
TaskId | String | 9060461 |
The ID of the site monitoring task. |
TaskName | String | START_SparkHistory |
The name of the availability monitoring task. |
PageNumber | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 10 |
You can call this operation to query the number of records on each page. |
RequestId | String | 1320AD6F-45A5-4FC6-B5EA-A0A4B86AD8B4 |
The ID of the request. |
TotalCount | Integer | 3 |
The total number of entries returned. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListClusterOperationTask
&ClusterId=C-E71BCCAF7F6F****
&RegionId=cn-hangzhou
&OperationId=83586
&<common request parameters>
Sample success responses
XML
format
<clusterOperationTaskList>
<percentage/>
<status>COMPLETED</status>
<taskId>9060461</taskId>
<taskName>START_SparkHistory</taskName>
</clusterOperationTaskList>
<clusterOperationTaskList>
<percentage/>
<status>COMPLETED</status>
<taskId>9060460</taskId>
<taskName>INSTALL_SparkInit</taskName>
</clusterOperationTaskList>
<clusterOperationTaskList>
<percentage/>
<status>COMPLETED</status>
<taskId>9060459</taskId>
<taskName>INSTALL_SparkHistory</taskName>
</clusterOperationTaskList>
<pageNumber>1</pageNumber>
<pageSize>10</pageSize>
<requestId>1320AD6F-45A5-4FC6-B5EA-A0A4B86AD8B4</requestId>
<totalCount>3</totalCount>
JSON
Syntax
{
"clusterOperationTaskList":
[
{
"percentage":"",
"status":"COMPLETED",
"taskId":"9060461",
"taskName":"START_SparkHistory"
},
{
"percentage":"",
"status":"COMPLETED",
"taskId":"9060460",
"taskName":"INSTALL_SparkInit"
},
{
"percentage":"",
"status":"COMPLETED",
"taskId":"9060459",
"taskName":"INSTALL_SparkHistory"
}
],
"pageNumber":1,
"pageSize":10,
"requestId":"1320AD6F-45A5-4FC6-B5EA-A0A4B86AD8B4",
"totalCount":3
}