younifyd
Menu

Get information about all currently running reindex tasks

Get information about all currently running reindex tasks

GET/_reindex

Use it in a workflow

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

Request

Query parameters

detailedboolean

If `true`, include detailed task status information in the response.

Response

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

reindexarray<object>

The list of currently running reindex tasks.

idanyrequired

The ID of the reindex task. The ID is assigned when the task was first created and remains the same across graceful shutdown relocations.

descriptionstring

A sanitized description of the reindex operation (source and destination indices, and optionally remote host info).

start_time_in_millisanyrequired

The time at which the reindex task started, in milliseconds since the Unix epoch. Remains the same across graceful shutdown relocations.

start_timestring

The time at which the reindex task started, as an ISO-8601 formatted string. Remains the same across graceful shutdown relocations. Only present when the request includes the `?human=true` query parameter.

running_timeany

The elapsed running time of the reindex task, including relocations, in a human-readable format. Only present when the request includes the `?human=true` query parameter.

running_time_in_nanosanyrequired

The elapsed running time of the reindex task, including relocations, in nanoseconds.

cancelledbooleanrequired

Whether the reindex task has been cancelled.

statusany

The current progress of the reindex operation.

task_failuresarray<object>

Per-task failures encountered while listing reindex tasks. Tasks that failed are not included in the `reindex` array.

task_idnumberrequired
node_idanyrequired
statusstringrequired
reasonanyrequired
node_failuresarray<object>

Node-level failures encountered while listing reindex tasks. Typically populated when a node disconnects or stops responding mid-request, reindex tasks running on such nodes will be missing from the `reindex` array for the duration of the disruption.

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>
json
{
  "reindex": [
    {
      "id": null,
      "start_time_in_millis": null,
      "running_time_in_nanos": null,
      "cancelled": false,
      "description": "string",
      "start_time": "string",
      "running_time": null,
      "status": null
    }
  ],
  "task_failures": [
    {
      "task_id": 0,
      "node_id": null,
      "status": "string",
      "reason": null
    }
  ],
  "node_failures": [
    {
      "type": "string",
      "reason": null,
      "stack_trace": "string",
      "caused_by": null,
      "root_cause": [
        {}
      ],
      "suppressed": [
        {}
      ]
    }
  ]
}

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

Get information about all currently running reindex tasks — Elasticsearch — Documentation