stop.asciidoc 2.0 KB

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