get-status.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. Returns the status of the {ilm-init} plugin. The `operation_mode` field in the
  21. response shows one of three states: `STARTED`, `STOPPING`,
  22. or `STOPPED`. You can change the status of the {ilm-init} plugin with the
  23. <<ilm-start,start ILM>> and <<ilm-stop,stop ILM>> APIs.
  24. [[ilm-get-status-query-params]]
  25. ==== {api-query-parms-title}
  26. include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  27. [[ilm-get-status-example]]
  28. ==== {api-examples-title}
  29. The following example gets the {ilm-init} plugin status.
  30. [source,console]
  31. --------------------------------------------------
  32. GET _ilm/status
  33. --------------------------------------------------
  34. If the request succeeds, the body of the response shows the operation mode:
  35. [source,console-result]
  36. --------------------------------------------------
  37. {
  38. "operation_mode": "RUNNING"
  39. }
  40. --------------------------------------------------