younifyd
Menu

Get all tasks

Get all tasks

GET/_tasks

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get all tasks action (under tasks).
  3. Fill in the fields below, then reference the result from later steps as {{getAllTasks.response.data}}.

Request

Query parameters

actionsoneOf

A comma-separated list or wildcard expression of actions used to limit the request. For example, you can use `cluser:*` to retrieve all cluster-related tasks.

detailedboolean

If `true`, the response includes detailed information about the running tasks. This information is useful to distinguish tasks from each other but is more costly to run.

group_bystring

A key that is used to group tasks in the response. The task lists can be grouped either by nodes or by parent tasks.

One ofnodesparentsnone

nodesoneOf

A comma-separated list of node IDs or names that is used to limit the returned information.

parent_task_idstring

A parent task identifier that is used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. If the parent task is not found, the API does not return a 404 response code.

timeoutoneOf

The period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its information. However, timed out nodes are included in the `node_failures` property.

wait_for_completionboolean

If `true`, the request blocks until the operation is complete.

Response

Returns 200 with an object. Read it in later steps with {{getAllTasks.response.data.<field>}}.

node_failuresarray<object>
typestringrequired

The type of error

reasononeOf

A human-readable explanation of the error, in English.

stack_tracestring

The server stack trace. Present only if the `error_trace=true` parameter was sent with the request.

caused_byany
root_causearray<object>
suppressedarray<object>
task_failuresarray<object>
task_idnumberrequired
node_idanyrequired
statusstringrequired
reasonanyrequired
nodesobject

Task information grouped by node, if `group_by` was set to `node` (the default).

tasksany

Either a flat list of tasks if `group_by` was set to `none`, or grouped by parents if `group_by` was set to `parents`.

json
{
  "node_failures": [
    {
      "type": "string",
      "reason": null,
      "stack_trace": "string",
      "caused_by": null,
      "root_cause": [
        {}
      ],
      "suppressed": [
        {}
      ]
    }
  ],
  "task_failures": [
    {
      "task_id": 0,
      "node_id": null,
      "status": "string",
      "reason": null
    }
  ],
  "nodes": {},
  "tasks": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Get all tasks — Elasticsearch — Documentation