Queries the details of a specified task, including its status, type, steps, and subtasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:DescribeTask |
get |
*Cluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
Yes |
The task ID. |
i156331731670384438138 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A7FD7411-9395-52E8-AF42-EB3A4A55446D |
| ClusterId |
string |
The cluster ID. |
i119982311660892626523 |
| ClusterName |
string |
The cluster name. |
Standard_Cluster |
| TaskState |
string |
The task status. Valid values:
Valid values:
|
running |
| TaskType |
string |
The task type. Valid values:
Valid values:
|
cut_cluster |
| Message |
string |
The error message returned for failed tasks. |
Releasing [prod_main_mid_26e234cf] in region [cn-beijing] with weight [0] |
| Steps |
array<object> |
The steps. |
|
|
array<object> |
|||
| StepName |
string |
The name of the step. |
create_vpd |
| StepState |
string |
The step status. Valid values:
Valid values:
|
execution_success |
| StepType |
string |
The type of the step. Valid values:
Valid values:
|
normal |
| SubTasks |
array<object> |
The subtasks. |
|
|
object |
|||
| TaskId |
string |
The task ID. |
i158805051661047928377 |
| TaskType |
string |
The task type. Valid values:
Valid values:
|
cut_node_sub_task |
| CreateTime |
string |
The creation time. |
2022-11-30T2:00:00.852Z |
| UpdateTime |
string |
The update time. |
2022-11-30T02:20:14.852Z |
| Message |
string |
The error message returned for failed subtasks. |
Releasing [prod_main_mid_26e234cf] in region [cn-beijing] with weight [0] |
| TaskState |
string |
The task status. |
running |
| StageTag |
string |
The stage tag. Valid values:
Valid values:
|
节点缩容 |
| Message |
string |
The error message of the step. |
get taskinfo failed |
| StartTime |
string |
The start time. |
2022-11-30T2:00:00.852Z |
| UpdateTime |
string |
The update time. |
2022-11-30T02:20:14.852Z |
| CreateTime |
string |
The time when the task was created. |
2022-11-30T02:00:00.852Z |
| UpdateTime |
string |
The update time. |
2022-11-30T03:40:14.852Z |
| NodeIds |
array |
The IDs of the nodes. |
|
|
string |
A node ID. |
['mock-sn-200101'] |
Examples
Success response
JSON format
{
"RequestId": "A7FD7411-9395-52E8-AF42-EB3A4A55446D",
"ClusterId": "i119982311660892626523",
"ClusterName": "Standard_Cluster",
"TaskState": "running",
"TaskType": "cut_cluster",
"Message": "Releasing [prod_main_mid_26e234cf] in region [cn-beijing] with weight [0]",
"Steps": [
{
"StepName": "create_vpd",
"StepState": "execution_success",
"StepType": "normal",
"SubTasks": [
{
"TaskId": "i158805051661047928377",
"TaskType": "cut_node_sub_task",
"CreateTime": "2022-11-30T2:00:00.852Z",
"UpdateTime": "2022-11-30T02:20:14.852Z",
"Message": "Releasing [prod_main_mid_26e234cf] in region [cn-beijing] with weight [0]",
"TaskState": "running"
}
],
"StageTag": "节点缩容",
"Message": "get taskinfo failed",
"StartTime": "2022-11-30T2:00:00.852Z",
"UpdateTime": "2022-11-30T02:20:14.852Z"
}
],
"CreateTime": "2022-11-30T02:00:00.852Z",
"UpdateTime": "2022-11-30T03:40:14.852Z",
"NodeIds": [
"['mock-sn-200101']"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.