get-status.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-get-status]]
  4. === Get {ILM} Status API
  5. ++++
  6. <titleabbrev>Get {ILM} Status</titleabbrev>
  7. ++++
  8. beta[]
  9. Retrieves the current {ilm} status.
  10. ==== Request
  11. `GET /_ilm/status`
  12. ==== Description
  13. Returns the status of the {ILM} 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} plugin with the
  16. <<ilm-start, Start ILM>> and <<ilm-stop, Stop ILM>> APIs.
  17. ==== Request Parameters
  18. include::{docdir}/rest-api/timeoutparms.asciidoc[]
  19. ==== Authorization
  20. include::ilm-cluster-mgt-privilege.asciidoc[]
  21. ==== Examples
  22. The following example gets the {ILM} 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