stop.asciidoc 2.3 KB

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