stop.asciidoc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-stop]]
  4. === Stop {ILM} API
  5. ++++
  6. <titleabbrev>Stop {ILM}</titleabbrev>
  7. ++++
  8. beta[]
  9. Stop the {ILM} plugin.
  10. ==== Request
  11. `POST /_ilm/stop`
  12. ==== Description
  13. Halts all lifecycle management operations and stops the {ILM} plugin. This is
  14. useful when you are performing maintenance on the cluster and need to prevent
  15. {ILM} from performing any actions on your indices.
  16. The API returns as soon as the stop request has been acknowledged, but the
  17. plugin might continue to run until in-progress operations complete and the plugin
  18. can be safely stopped. Use the <<ilm-get-status, Get ILM Status>> API to see
  19. if {ILM} is running.
  20. ==== Request Parameters
  21. include::{docdir}/rest-api/timeoutparms.asciidoc[]
  22. ==== Authorization
  23. You must have the `manage_ilm` cluster privilege to use this API.
  24. For more information, see {stack-ov}/security-privileges.html[Security Privileges].
  25. ==== Examples
  26. The following example stops the ILM plugin.
  27. //////////////////////////
  28. [source,js]
  29. --------------------------------------------------
  30. PUT _ilm/policy/my_policy
  31. {
  32. "policy": {
  33. "phases": {
  34. "warm": {
  35. "min_age": "10d",
  36. "actions": {
  37. "forcemerge": {
  38. "max_num_segments": 1
  39. }
  40. }
  41. },
  42. "delete": {
  43. "min_age": "30d",
  44. "actions": {
  45. "delete": {}
  46. }
  47. }
  48. }
  49. }
  50. }
  51. PUT my_index
  52. --------------------------------------------------
  53. // CONSOLE
  54. // TEST
  55. //////////////////////////
  56. [source,js]
  57. --------------------------------------------------
  58. POST _ilm/stop
  59. --------------------------------------------------
  60. // CONSOLE
  61. // TEST[continued]
  62. If the request does not encounter errors, you receive the following result:
  63. [source,js]
  64. --------------------------------------------------
  65. {
  66. "acknowledged": true
  67. }
  68. --------------------------------------------------
  69. // CONSOLE
  70. // TESTRESPONSE
  71. //////////////////////////
  72. [source,js]
  73. --------------------------------------------------
  74. POST _ilm/start
  75. --------------------------------------------------
  76. // CONSOLE
  77. // TEST[continued]
  78. //////////////////////////