Retrieve status of a node or nodes that are currently marked as shutting down Added in 7.13.0

GET /_nodes/{node_id}/shutdown

Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

Path parameters

  • node_id string | array[string] Required

    Which node for which to retrieve the shutdown status

Query parameters

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

    Values are nanos, micros, ms, s, m, h, or d.

  • timeout string

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

    Values are nanos, micros, ms, s, m, h, or d.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • nodes array[object] Required
      Hide nodes attributes Show nodes attributes object
      • node_id string Required
      • type string Required

        Values are remove or restart.

      • reason string Required
      • Time unit for milliseconds

      • status string Required

        Values are not_started, in_progress, stalled, or complete.

      • shard_migration object Required

        Additional properties are allowed.

        Hide shard_migration attribute Show shard_migration attribute object
        • status string Required

          Values are not_started, in_progress, stalled, or complete.

      • persistent_tasks object Required

        Additional properties are allowed.

        Hide persistent_tasks attribute Show persistent_tasks attribute object
        • status string Required

          Values are not_started, in_progress, stalled, or complete.

      • plugins object Required

        Additional properties are allowed.

        Hide plugins attribute Show plugins attribute object
        • status string Required

          Values are not_started, in_progress, stalled, or complete.

GET /_nodes/{node_id}/shutdown
curl \
 -X GET http://api.example.com/_nodes/{node_id}/shutdown
Response examples (200)
{
  "nodes": [
    {
      "node_id": "string",
      "type": "remove",
      "reason": "string",
      "": 42.0,
      "status": "not_started",
      "shard_migration": {
        "status": "not_started"
      },
      "persistent_tasks": {
        "status": "not_started"
      },
      "plugins": {
        "status": "not_started"
      }
    }
  ]
}