stop.asciidoc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. This API will stop the ILM plugin. This can be used for period where
  13. maintenance is required and ILM should not perform any actions on any indices.
  14. The API will return as soon as the stop request has been acknowledged but the
  15. plugin may not immediately stop but rather need to wait for some operations
  16. to finish before it's stopped. Progress can be seen using the
  17. <<ilm-get-status, Get ILM Status>> API.
  18. ==== Request Parameters
  19. `timeout`::
  20. (time units) Specifies the period of time to wait for the response. When this
  21. period of time elapses, the API fails and returns an error. The default value
  22. is `30s`. For more information about time units, see <<time-units>>.
  23. `master_timeout`::
  24. (time units) Specifies the period of time to wait for the connection with master.
  25. When this period of time elapses, the API fails and returns an error.
  26. The default value is `30s`. For more information about time units, see <<time-units>>.
  27. ==== Examples
  28. The following example stops the ILM plugin.
  29. //////////////////////////
  30. [source,js]
  31. --------------------------------------------------
  32. PUT _ilm/my_policy
  33. {
  34. "policy": {
  35. "phases": {
  36. "warm": {
  37. "minimum_age": "10d",
  38. "actions": {
  39. "forcemerge": {
  40. "max_num_segments": 1
  41. }
  42. }
  43. },
  44. "delete": {
  45. "minimum_age": "30d",
  46. "actions": {
  47. "delete": {}
  48. }
  49. }
  50. }
  51. }
  52. }
  53. PUT my_index
  54. --------------------------------------------------
  55. // CONSOLE
  56. // TEST
  57. //////////////////////////
  58. [source,js]
  59. --------------------------------------------------
  60. POST _ilm/stop
  61. --------------------------------------------------
  62. // CONSOLE
  63. // TEST[continued]
  64. If the request does not encounter errors, you receive the following result:
  65. [source,js]
  66. --------------------------------------------------
  67. {
  68. "acknowledged": true
  69. }
  70. --------------------------------------------------
  71. // CONSOLE
  72. // TESTRESPONSE
  73. //////////////////////////
  74. [source,js]
  75. --------------------------------------------------
  76. POST _ilm/start
  77. --------------------------------------------------
  78. // CONSOLE
  79. // TEST[continued]
  80. //////////////////////////