DescribeTask

Updated at:

Queries the details of a node.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:DescribeTask

get

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

TaskId

string

Yes

The node 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 state.

Valid values:

  • running :

    Running.

  • execution_fail :

    Execution failed.

  • execution_success :

    Execution succeeded.

  • waiting_to_run :

    Waiting to run.

running

TaskType

string

The task type.

Valid values:

  • reclone_node_sub_task :

    Reinstall node subtask.

  • initialize_bare_cluster :

    Initialize bare cluster.

  • extend_bare_cluster :

    Scale out bare cluster.

  • reclone_node :

    Reinstall node.

  • reboot_node :

    Restart node.

  • extend_ack_edge_cluster :

    Scale out ACK cluster.

  • extend_cluster :

    Scale out cluster.

  • initialize_ack_edge_cluster :

    Initialize ACK cluster.

  • cut_node_sub_task :

    Scale in cluster subtask.

  • reboot_node_sub_task :

    Restart node subtask.

  • reclone_ack_edge_node :

    Reinstall ACK node.

  • initialize_cluster :

    Initialize standard cluster.

  • cut_cluster :

    Scale in cluster.

  • reclone_bare_node :

    Reinstall bare cluster node.

  • cut_bare_cluster :

    Scale in bare cluster.

cut_cluster

Message

string

The task failure message.

Releasing [prod_main_mid_26e234cf] in region [cn-beijing] with weight [0]

Steps

array<object>

The execution steps.

array<object>

StepName

string

The step name.

create_vpd

StepState

string

The step execution state.

Valid values:

  • execution_success :

    Execution succeeded.

  • execution_failed :

    Execution failed.

execution_success

StepType

string

The step type.

Valid values:

  • normal :

    Normal type with exactly one successor step.

  • dispersive :

    Divergent type with multiple successor steps.

normal

SubTasks

array<object>

The subtasks.

object

TaskId

string

The node ID.

i158805051661047928377

TaskType

string

The task type.

Valid values:

  • reclone_node_sub_task :

    Reinstall node subtask.

  • initialize_bare_cluster :

    Initialize bare cluster.

  • extend_bare_cluster :

    Scale out bare cluster.

  • reclone_node :

    Reinstall node.

  • reboot_node :

    Restart node.

  • extend_ack_edge_cluster :

    Scale out ACK cluster.

  • extend_cluster :

    Scale out cluster.

  • initialize_ack_edge_cluster :

    Initialize ACK cluster.

  • cut_node_sub_task :

    Scale in cluster subtask.

  • reboot_node_sub_task :

    Restart node subtask.

  • reclone_ack_edge_node :

    Reinstall ACK node.

  • initialize_cluster :

    Initialize standard cluster.

  • cut_cluster :

    Scale in cluster.

  • reclone_bare_node :

    Reinstall bare cluster node.

  • cut_bare_cluster :

    Scale in bare cluster.

cut_node_sub_task

CreateTime

string

The creation time. The Z in the example indicates UTC.

2022-11-30T2:00:00.852Z

UpdateTime

string

The update time. Uses ISO 8601 format. The Z in the example indicates UTC.

2022-11-30T02:20:14.852Z

Message

string

The subtask failure message.

Releasing [prod_main_mid_26e234cf] in region [cn-beijing] with weight [0]

TaskState

string

The task execution state.

running

StageTag

string

The stage tag.

Valid values:

  • 机器释放 :

    Machine release.

  • 节点并发初始化 :

    Concurrent node initialization.

  • 节点释放 :

    Node release.

  • 机器替换 :

    Machine replacement.

  • 提前续费 :

    Early renewal.

  • 节点缩容 :

    Node scale-in.

  • 物理机清理 :

    Physical machine cleanup.

  • 节点清理 :

    node cleanup.

  • 创建K8s集群 :

    create K8s cluster.

  • 网络初始化 :

    network initialization.

  • 节点退订 :

    node unsubscription.

  • 节点重启 :

    node restart.

  • 集群扩容 :

    cluster scale-out.

  • 异常机器释放 :

    abnormal instance release.

node scale-in

Message

string

The step failure message.

get taskinfo failed

StartTime

string

The start time. Z in the example indicates UTC.

2022-11-30T2:00:00.852Z

UpdateTime

string

The update time. Uses ISO 8601 format. The Z in the example indicates UTC.

2022-11-30T02:20:14.852Z

CreateTime

string

The start time. The value is in ISO 8601 format. Z in the example indicates UTC.

2022-11-30T02:00:00.852Z

UpdateTime

string

The update time. Uses ISO 8601 format. The Z in the example indicates UTC.

2022-11-30T03:40:14.852Z

NodeIds

array

The list of node IDs.

string

The list of node IDs.

['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.