get-status.asciidoc 1.2 KB

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