get-status.asciidoc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. [[ilm-get-status-request]]
  11. ==== {api-request-title}
  12. `GET /_ilm/status`
  13. [[ilm-get-status-prereqs]]
  14. ==== {api-prereq-title}
  15. * If the {es} {security-features} are enabled, you must have the `manage_ilm` or
  16. `read_ilm` or both cluster privileges to use this API. For more information, see
  17. <<security-privileges>>.
  18. [[ilm-get-status-desc]]
  19. ==== {api-description-title}
  20. [[ilm-operating-modes]]
  21. Returns the status of the {ilm-init} plugin.
  22. The `operation_mode` in the response shows one of three states: `STARTED`, `STOPPING`, or `STOPPED`.
  23. You can start or stop {ilm-init} with the
  24. <<ilm-start,start {ilm-init}>> and <<ilm-stop,stop {ilm-init}>> APIs.
  25. [[ilm-get-status-query-params]]
  26. ==== {api-query-parms-title}
  27. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  28. [[ilm-get-status-example]]
  29. ==== {api-examples-title}
  30. The following example gets the {ilm-init} plugin status.
  31. [source,console]
  32. --------------------------------------------------
  33. GET _ilm/status
  34. --------------------------------------------------
  35. If the request succeeds, the body of the response shows the operation mode:
  36. [source,console-result]
  37. --------------------------------------------------
  38. {
  39. "operation_mode": "RUNNING"
  40. }
  41. --------------------------------------------------