Get the shutdown status

  • GET /_nodes/{node_id}/shutdown
  • GET /_nodes/shutdown
Auth

Get information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled. The API returns status information for each part of the shut down process.

Note

This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

If the operator privileges feature is enabled, you must be an operator to use this API.

Required authorization

Cluster privileges manage

Path parameters

node_id union string | string[] optional

Comma-separated list of nodes for which to retrieve the shutdown status

Leave it out to use /_nodes/shutdown.

Query parameters

master_timeout string · default: 30s

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.

Response

application/json
nodes object[] required
node_id string required
type enum required
Values: remove restart
reason string required
shutdown_startedmillis number required
status enum required
Values: not_started in_progress stalled complete
shard_migration object required
status enum required
Values: not_started in_progress stalled complete
persistent_tasks object required
status enum required
Values: not_started in_progress stalled complete
plugins object required
status enum required
Values: not_started in_progress stalled complete