younifyd
Menu

Get the status and progress of a specific reindex task

Get the status and progress of a specific reindex task

GET/_reindex/{task_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get the status and progress of a specific reindex task action (under reindex).
  3. Fill in the fields below, then reference the result from later steps as {{getTheStatusAndProgressOfASpecificReindexTask.response.data}}.

Request

Path parameters

task_idstringrequired

The ID of the reindex task to retrieve.

Query parameters

wait_for_completionboolean

If `true`, the request blocks until the reindex task completes, then returns the result.

timeoutoneOf

The period to wait for the reindex task to complete when `wait_for_completion` is `true`.

Response

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

completedboolean

Whether the reindex task has completed.

idany

The ID of the reindex task. The value is the ID assigned when the task was first created and remains stable across node-shutdown relocations.

descriptionstring

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

start_time_in_millisany

The time at which the reindex task started, in milliseconds since the Unix epoch.

start_timestring

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

running_timeany

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

running_time_in_nanosany

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

cancelledboolean

Whether the reindex task has been cancelled.

statusany

The current progress of the reindex operation.

errorany

The error that caused the reindex task to fail, if any.

responseany

The final result of the completed reindex operation, if the task has finished successfully.

json
{
  "completed": false,
  "id": null,
  "start_time_in_millis": null,
  "running_time_in_nanos": null,
  "cancelled": false,
  "description": "string",
  "start_time": "string",
  "running_time": null,
  "status": null,
  "error": null,
  "response": null
}

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

Get the status and progress of a specific reindex task — Elasticsearch — Documentation