get-status.asciidoc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-get-status]]
  4. === Get {ilm} status API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Get {ilm} status</titleabbrev>
  8. ++++
  9. Retrieves the current {ilm} ({ilm-init}) status.
  10. ==== Request
  11. `GET /_ilm/status`
  12. ==== Description
  13. Returns the status of the {ilm-init} plugin. The `operation_mode` field in the
  14. response shows one of three states: `STARTED`, `STOPPING`,
  15. or `STOPPED`. You can change the status of the {ilm-init} plugin with the
  16. <<ilm-start, Start ILM>> and <<ilm-stop, Stop ILM>> APIs.
  17. ==== Request Parameters
  18. include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  19. ==== Authorization
  20. You must have the `manage_ilm` or `read_ilm` or both cluster privileges to use this API.
  21. For more information, see {stack-ov}/security-privileges.html[Security Privileges].
  22. ==== Examples
  23. The following example gets the {ilm-init} plugin status.
  24. [source,js]
  25. --------------------------------------------------
  26. GET _ilm/status
  27. --------------------------------------------------
  28. // CONSOLE
  29. If the request succeeds, the body of the response shows the operation mode:
  30. [source,console-result]
  31. --------------------------------------------------
  32. {
  33. "operation_mode": "RUNNING"
  34. }
  35. --------------------------------------------------