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
|
|
|
|
2019-11-20 11:19:33 -05:00
|
|
|
[[ilm-get-status-request]]
|
|
|
|
==== {api-request-title}
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2018-10-26 15:19:52 -04:00
|
|
|
`GET /_ilm/status`
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2019-11-20 11:19:33 -05:00
|
|
|
[[ilm-get-status-prereqs]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
|
|
|
* If the {es} {security-features} are enabled, you must have the `manage_ilm` or
|
|
|
|
`read_ilm` or both cluster privileges to use this API. For more information, see
|
|
|
|
<<security-privileges>>.
|
|
|
|
|
|
|
|
[[ilm-get-status-desc]]
|
|
|
|
==== {api-description-title}
|
2018-10-16 15:18:54 -04:00
|
|
|
|
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
|
2020-04-28 19:38:01 -04:00
|
|
|
<<ilm-start,start {ilm-init}>> and <<ilm-stop,stop {ilm-init}>> APIs.
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2019-11-20 11:19:33 -05:00
|
|
|
[[ilm-get-status-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
2018-10-16 15:18:54 -04:00
|
|
|
|
2019-11-20 11:19:33 -05:00
|
|
|
[[ilm-get-status-example]]
|
|
|
|
==== {api-examples-title}
|
2018-10-16 15:18:54 -04:00
|
|
|
|
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
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2018-10-16 15:18:54 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
GET _ilm/status
|
|
|
|
--------------------------------------------------
|
|
|
|
|
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
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2018-10-16 15:18:54 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"operation_mode": "RUNNING"
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|