get-status.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-get-status]]
  4. === Get ILM Status API
  5. ++++
  6. <titleabbrev>Get ILM Status</titleabbrev>
  7. ++++
  8. Gets the current status for ILM.
  9. ==== Request
  10. `GET /_ilm/status`
  11. ==== Description
  12. This API will return the current status of the ILM plugin. The response contains
  13. a `operation_mode` field which shows whether the ILM plugin is `STARTED`, `STOPPING`
  14. or `STOPPED`. This `operation_mode` is controlled by the <<ilm-start, Start ILM>>
  15. and <<ilm-stop, Stop ILM>> APIs.
  16. ==== Request Parameters
  17. `timeout`::
  18. (time units) Specifies the period of time to wait for the completion of the
  19. get operation. When this period of time elapses, the API fails and returns
  20. an error. The default value is `30s`. For more information about time units,
  21. see <<time-units>>.
  22. `master_timeout`::
  23. (time units) Specifies the period of time to wait for the connection with master.
  24. When this period of time elapses, the API fails and returns an error.
  25. The default value is `30s`. For more information about time units, see <<time-units>>.
  26. ==== Examples
  27. The following example stops the ILM plugin.
  28. [source,js]
  29. --------------------------------------------------
  30. GET _ilm/status
  31. --------------------------------------------------
  32. // CONSOLE
  33. If the request does not encounter errors, you receive the following result:
  34. [source,js]
  35. --------------------------------------------------
  36. {
  37. "operation_mode": "RUNNING"
  38. }
  39. --------------------------------------------------
  40. // CONSOLE
  41. // TESTRESPONSE