Get the shutdown status
- GET /_nodes/{node_id}/shutdown
- GET /_nodes/shutdown
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.
- Cluster privileges:
manage
Path Parameters
-
node_idNodeId | NodeIdoptional -
Comma-separated list of nodes for which to retrieve the shutdown status
Leave it out to use
/_nodes/shutdown.
Query Parameters
-
master_timeoutstring Duration · 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
-
nodesNodeShutdownStatusrequired -
node_idstringrequired -
typeShutdownTyperequired -
Values:
removerestart -
reasonstringrequired -
shutdown_startedmillisEpochTimeUnitMillisrequired -
statusShutdownStatusrequired -
Values:
not_startedin_progressstalledcomplete -
shard_migrationShardMigrationStatusrequired -
statusShutdownStatusrequired -
Values:
not_startedin_progressstalledcomplete -
persistent_tasksPersistentTaskStatusrequired -
statusShutdownStatusrequired -
Values:
not_startedin_progressstalledcomplete