You can call this operation to query the tasks of a specified host on which a specific operation is performed.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Required | ListClusterOperationTask |
The operation that you want to perform. For API requests using the HTTP or HTTPS URL, this parameter is required. Valid values: ListClusterOperationTask |
ClusterId | String | Required | C-E71BCCAF7F6F**** |
The ID of the cluster. |
OperationId | String | Required | 83586 |
The ID of the action. |
RegionId | String | Required | cn-hangzhou |
The ID of the region where the DRDS instance resides. |
Status | String | No | SUCCESS |
Execution status:
|
PageNumber | Integer | Optional | 1 |
The number of the page to return. |
PageSize | Integer | Optional | 10 |
The number of entries to return 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 task. |
TaskName | String | START_SparkHistory |
The name of the task. |
PageNumber | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 10 |
The number of entries to return on each page. |
RequestId | String | 1320AD6F-45A5-4FC6-B5EA-A0A4B86AD8B4 |
The ID of the request. |
TotalCount | Integer | 3 |
The total number of returned records. |
Examples
Sample request
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
format
{
"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
}
Errors
For a list of error codes, visit the API Error Center.