start.asciidoc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-start]]
  4. === Start ILM API
  5. ++++
  6. <titleabbrev>Start ILM</titleabbrev>
  7. ++++
  8. Start the ILM plugin
  9. ==== Request
  10. `POST /_ilm/start`
  11. ==== Description
  12. This API will start the ILM plugin if it is currently stopped. ILM is started
  13. by default when the cluster is formed so this API is only needed if ILM has
  14. been stopped using the <<ilm-stop, Stop ILM API>>.
  15. ==== Request Parameters
  16. `timeout`::
  17. (time units) Specifies the period of time to wait for the completion of the
  18. start operation. When this period of time elapses, the API fails and returns
  19. an error. The default value is `30s`. For more information about time units,
  20. see <<time-units>>.
  21. `master_timeout`::
  22. (time units) Specifies the period of time to wait for the connection with master.
  23. When this period of time elapses, the API fails and returns an error.
  24. The default value is `30s`. For more information about time units, see <<time-units>>.
  25. ==== Examples
  26. The following example starts the ILM plugin.
  27. //////////////////////////
  28. [source,js]
  29. --------------------------------------------------
  30. PUT _ilm/policy/my_policy
  31. {
  32. "policy": {
  33. "phases": {
  34. "warm": {
  35. "min_age": "10d",
  36. "actions": {
  37. "forcemerge": {
  38. "max_num_segments": 1
  39. }
  40. }
  41. },
  42. "delete": {
  43. "min_age": "30d",
  44. "actions": {
  45. "delete": {}
  46. }
  47. }
  48. }
  49. }
  50. }
  51. PUT my_index
  52. POST _ilm/stop
  53. --------------------------------------------------
  54. // CONSOLE
  55. // TEST
  56. //////////////////////////
  57. [source,js]
  58. --------------------------------------------------
  59. POST _ilm/start
  60. --------------------------------------------------
  61. // CONSOLE
  62. // TEST[continued]
  63. If the request does not encounter errors, you receive the following result:
  64. [source,js]
  65. --------------------------------------------------
  66. {
  67. "acknowledged": true
  68. }
  69. --------------------------------------------------
  70. // CONSOLE
  71. // TESTRESPONSE