stop.asciidoc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. include::ilm-cluster-mgt-privilege.asciidoc[]
  24. ==== Examples
  25. The following example stops the ILM plugin.
  26. //////////////////////////
  27. [source,js]
  28. --------------------------------------------------
  29. PUT _ilm/policy/my_policy
  30. {
  31. "policy": {
  32. "phases": {
  33. "warm": {
  34. "min_age": "10d",
  35. "actions": {
  36. "forcemerge": {
  37. "max_num_segments": 1
  38. }
  39. }
  40. },
  41. "delete": {
  42. "min_age": "30d",
  43. "actions": {
  44. "delete": {}
  45. }
  46. }
  47. }
  48. }
  49. }
  50. PUT my_index
  51. --------------------------------------------------
  52. // CONSOLE
  53. // TEST
  54. //////////////////////////
  55. [source,js]
  56. --------------------------------------------------
  57. POST _ilm/stop
  58. --------------------------------------------------
  59. // CONSOLE
  60. // TEST[continued]
  61. If the request does not encounter errors, you receive the following result:
  62. [source,js]
  63. --------------------------------------------------
  64. {
  65. "acknowledged": true
  66. }
  67. --------------------------------------------------
  68. // CONSOLE
  69. // TESTRESPONSE
  70. //////////////////////////
  71. [source,js]
  72. --------------------------------------------------
  73. POST _ilm/start
  74. --------------------------------------------------
  75. // CONSOLE
  76. // TEST[continued]
  77. //////////////////////////