mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 21:48:39 +00:00
100d2bd063
* [DOCS] Editorial cleanup * Moved example of applying a template to multiple indices. * Combine existing indices topics * Fixed test * Add skip rollover file. * Revert rename. * Update include. * Revert rename * Apply suggestions from code review Co-authored-by: Adam Locke <adam.locke@elastic.co> Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com> * Apply suggestions from code review * Fixed callout * Update docs/reference/ilm/ilm-with-existing-indices.asciidoc Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com> * Update docs/reference/ilm/ilm-with-existing-indices.asciidoc Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com> * Apply suggestions from code review * Restored policy to template example. * Fixed JSON parse error Co-authored-by: Adam Locke <adam.locke@elastic.co> Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com> Co-authored-by: Adam Locke <adam.locke@elastic.co> Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
[role="xpack"]
|
|
[testenv="basic"]
|
|
[[ilm-get-status]]
|
|
=== Get {ilm} status API
|
|
|
|
[subs="attributes"]
|
|
++++
|
|
<titleabbrev>Get {ilm} status</titleabbrev>
|
|
++++
|
|
|
|
Retrieves the current {ilm} ({ilm-init}) status.
|
|
|
|
[[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-desc]]
|
|
==== {api-description-title}
|
|
|
|
[[ilm-operating-modes]]
|
|
Returns the status of the {ilm-init} plugin.
|
|
The `operation_mode` in the response shows one of three states: `STARTED`, `STOPPING`, or `STOPPED`.
|
|
You can start or stop {ilm-init} with the
|
|
<<ilm-start,start {ilm-init}>> and <<ilm-stop,stop {ilm-init}>> APIs.
|
|
|
|
[[ilm-get-status-query-params]]
|
|
==== {api-query-parms-title}
|
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
|
|
|
[[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"
|
|
}
|
|
--------------------------------------------------
|