2018-10-16 15:18:54 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
|
|
|
[[ilm-get-status]]
|
2018-12-20 16:34:11 -05:00
|
|
|
=== Get {ilm} status API
|
2019-04-30 13:46:13 -04:00
|
|
|
|
|
|
|
[subs="attributes"]
|
2018-10-16 15:18:54 -04:00
|
|
|
++++
|
2018-12-20 16:34:11 -05:00
|
|
|
<titleabbrev>Get {ilm} status</titleabbrev>
|
2018-10-16 15:18:54 -04:00
|
|
|
++++
|
|
|
|
|
2018-12-20 16:34:11 -05:00
|
|
|
Retrieves the current {ilm} ({ilm-init}) status.
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
==== Request
|
|
|
|
|
2018-10-26 15:19:52 -04:00
|
|
|
`GET /_ilm/status`
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
==== Description
|
|
|
|
|
2018-12-20 16:34:11 -05:00
|
|
|
Returns the status of the {ilm-init} plugin. The `operation_mode` field in the
|
2018-11-08 18:26:27 -05:00
|
|
|
response shows one of three states: `STARTED`, `STOPPING`,
|
2018-12-20 16:34:11 -05:00
|
|
|
or `STOPPED`. You can change the status of the {ilm-init} plugin with the
|
2018-11-08 18:26:27 -05:00
|
|
|
<<ilm-start, Start ILM>> and <<ilm-stop, Stop ILM>> APIs.
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
==== Request Parameters
|
|
|
|
|
2019-08-02 08:42:33 -04:00
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2018-11-08 18:26:27 -05:00
|
|
|
==== Authorization
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2018-12-18 12:53:25 -05:00
|
|
|
You must have the `manage_ilm` or `read_ilm` or both cluster privileges to use this API.
|
|
|
|
For more information, see {stack-ov}/security-privileges.html[Security Privileges].
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
==== Examples
|
|
|
|
|
2018-12-20 16:34:11 -05:00
|
|
|
The following example gets the {ilm-init} plugin status.
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET _ilm/status
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
2018-11-08 18:26:27 -05:00
|
|
|
If the request succeeds, the body of the response shows the operation mode:
|
2018-10-16 15:18:54 -04:00
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"operation_mode": "RUNNING"
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TESTRESPONSE
|