2018-10-16 15:18:54 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
|
|
|
[[ilm-get-status]]
|
|
|
|
=== Get ILM Status API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get ILM Status</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Gets the current status for ILM.
|
|
|
|
|
|
|
|
==== Request
|
|
|
|
|
2018-10-26 15:19:52 -04:00
|
|
|
`GET /_ilm/status`
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
==== Description
|
|
|
|
|
|
|
|
This API will return the current status of the ILM plugin. The response contains
|
|
|
|
a `operation_mode` field which shows whether the ILM plugin is `STARTED`, `STOPPING`
|
|
|
|
or `STOPPED`. This `operation_mode` is controlled by the <<ilm-start, Start ILM>>
|
|
|
|
and <<ilm-stop, Stop ILM>> APIs.
|
|
|
|
|
|
|
|
==== Request Parameters
|
|
|
|
|
|
|
|
`timeout`::
|
|
|
|
(time units) Specifies the period of time to wait for the completion of the
|
|
|
|
get operation. When this period of time elapses, the API fails and returns
|
|
|
|
an error. The default value is `30s`. For more information about time units,
|
|
|
|
see <<time-units>>.
|
|
|
|
|
|
|
|
`master_timeout`::
|
|
|
|
(time units) Specifies the period of time to wait for the connection with master.
|
|
|
|
When this period of time elapses, the API fails and returns an error.
|
|
|
|
The default value is `30s`. For more information about time units, see <<time-units>>.
|
|
|
|
|
|
|
|
|
|
|
|
==== Examples
|
|
|
|
|
|
|
|
The following example stops the ILM plugin.
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET _ilm/status
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
If the request does not encounter errors, you receive the following result:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"operation_mode": "RUNNING"
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TESTRESPONSE
|