Get the shutdown status Added in 7.13.0
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.
Query parameters
-
master_timeout string
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
, ord
. -
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
, ord
.
curl \
-X GET http://api.example.com/_nodes/shutdown
{
"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"
}
}
]
}