stop.asciidoc 2.3 KB

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