elasticsearch/docs/reference/ilm/apis/get-status.asciidoc
Liam Thompson 33a71e3289
[DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413)
* Remove `es-test-dir` book-scoped variable

* Remove `plugins-examples-dir` book-scoped variable

* Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables

- In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed.
- In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path
- In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem

* Replace `es-repo-dir` with `es-ref-dir`

* Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
2024-04-17 14:37:07 +02:00

71 lines
1.7 KiB
Text

[role="xpack"]
[[ilm-get-status]]
=== Get {ilm} status API
[subs="attributes"]
++++
<titleabbrev>Get {ilm} status</titleabbrev>
++++
Retrieves the current {ilm} ({ilm-init}) status.
You can start or stop {ilm-init} with the <<ilm-start,start {ilm-init}>> and
<<ilm-stop,stop {ilm-init}>> APIs.
[[ilm-get-status-request]]
==== {api-request-title}
`GET /_ilm/status`
[[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-query-params]]
==== {api-query-parms-title}
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
[role="child_attributes"]
[[ilm-get-status-response-body]]
==== {api-response-body-title}
[[ilm-operating-modes]]
`operation_mode`::
(string) Current operation mode for {ilm-init}.
+
.Possible values for `operation_mode`
[%collapsible%open]
====
`RUNNING`::
{ilm-init} is running.
`STOPPING`::
{ilm-init} is finishing sensitive actions, such as <<ilm-shrink,shrink>>, that
are in progress. When these actions finish, {ilm-init} will move to `STOPPED`.
`STOPPED`::
{ilm-init} is not running.
====
[[ilm-get-status-example]]
==== {api-examples-title}
The following example gets the {ilm-init} plugin status.
[source,console]
--------------------------------------------------
GET _ilm/status
--------------------------------------------------
If the request succeeds, the body of the response shows the operation mode:
[source,console-result]
--------------------------------------------------
{
"operation_mode": "RUNNING"
}
--------------------------------------------------