start.asciidoc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-start]]
  4. === Start {ILM} API
  5. ++++
  6. <titleabbrev>Start {ILM}</titleabbrev>
  7. ++++
  8. beta[]
  9. Start the {ILM} plugin.
  10. ==== Request
  11. `POST /_ilm/start`
  12. ==== Description
  13. Starts the {ILM} plugin if it is currently stopped. {ILM} is started
  14. automatically when the cluster is formed. Restarting {ILM} is only
  15. necessary if it has been stopped using the <<ilm-stop, Stop {ILM} API>>.
  16. ==== Request Parameters
  17. include::{docdir}/rest-api/timeoutparms.asciidoc[]
  18. ==== Authorization
  19. include::ilm-cluster-mgt-privilege.asciidoc[]
  20. ==== Examples
  21. The following example starts the ILM plugin.
  22. //////////////////////////
  23. [source,js]
  24. --------------------------------------------------
  25. PUT _ilm/policy/my_policy
  26. {
  27. "policy": {
  28. "phases": {
  29. "warm": {
  30. "min_age": "10d",
  31. "actions": {
  32. "forcemerge": {
  33. "max_num_segments": 1
  34. }
  35. }
  36. },
  37. "delete": {
  38. "min_age": "30d",
  39. "actions": {
  40. "delete": {}
  41. }
  42. }
  43. }
  44. }
  45. }
  46. PUT my_index
  47. POST _ilm/stop
  48. --------------------------------------------------
  49. // CONSOLE
  50. // TEST
  51. //////////////////////////
  52. [source,js]
  53. --------------------------------------------------
  54. POST _ilm/start
  55. --------------------------------------------------
  56. // CONSOLE
  57. // TEST[continued]
  58. If the request succeeds, you receive the following result:
  59. [source,js]
  60. --------------------------------------------------
  61. {
  62. "acknowledged": true
  63. }
  64. --------------------------------------------------
  65. // CONSOLE
  66. // TESTRESPONSE