Get task information Technical preview

GET /_tasks/{task_id}

Returns information about the tasks currently executing in the cluster.

Path parameters

Query parameters

  • timeout string

    Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

  • If true, the request blocks until the task has completed.

Responses

GET /_tasks/{task_id}
curl \
 -X GET http://api.example.com/_tasks/{task_id}
Response examples (200)
{
  "completed": true,
  "additionalProperty1": {
    "action": "string",
    "cancelled": true,
    "cancellable": true,
    "description": "string",
    "headers": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "id": 42.0,
    "node": "string",
    "running_time": "string",
    "": "string",
    "status": {},
    "type": "string"
  },
  "additionalProperty2": {
    "action": "string",
    "cancelled": true,
    "cancellable": true,
    "description": "string",
    "headers": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "id": 42.0,
    "node": "string",
    "running_time": "string",
    "": "string",
    "status": {},
    "type": "string"
  },
  "response": {},
  "error": {
    "type": "string",
    "reason": "string",
    "stack_trace": "string",
    "caused_by": {},
    "root_cause": [
      {}
    ],
    "suppressed": [
      {}
    ]
  }
}