get-status.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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} status.
  9. ==== Request
  10. `GET /_ilm/status`
  11. ==== Description
  12. Returns the status of the {ILM} 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} 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. include::ilm-cluster-mgt-privilege.asciidoc[]
  20. ==== Examples
  21. The following example gets the {ILM} plugin status.
  22. [source,js]
  23. --------------------------------------------------
  24. GET _ilm/status
  25. --------------------------------------------------
  26. // CONSOLE
  27. If the request succeeds, the body of the response shows the operation mode:
  28. [source,js]
  29. --------------------------------------------------
  30. {
  31. "operation_mode": "RUNNING"
  32. }
  33. --------------------------------------------------
  34. // CONSOLE
  35. // TESTRESPONSE