start.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [role="xpack"]
  2. [[ilm-start]]
  3. === Start {ilm} API
  4. [subs="attributes"]
  5. ++++
  6. <titleabbrev>Start {ilm}</titleabbrev>
  7. ++++
  8. Start the {ilm} ({ilm-init}) plugin.
  9. [[ilm-start-request]]
  10. ==== {api-request-title}
  11. `POST /_ilm/start`
  12. [[ilm-start-prereqs]]
  13. ==== {api-prereq-title}
  14. * If the {es} {security-features} are enabled, you must have the `manage_ilm`
  15. cluster privilege to use this API. For more information, see
  16. <<security-privileges>>.
  17. [[ilm-start-desc]]
  18. ==== {api-description-title}
  19. Starts the {ilm-init} plugin if it is currently stopped. {ilm-init} is started
  20. automatically when the cluster is formed. Restarting {ilm-init} is only
  21. necessary if it has been stopped using the <<ilm-stop, Stop {ilm-init} API>>.
  22. [[ilm-start-query-params]]
  23. ==== {api-query-parms-title}
  24. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  25. [[ilm-start-example]]
  26. ==== {api-examples-title}
  27. The following example starts the {ilm-init} plugin.
  28. //////////////////////////
  29. [source,console]
  30. --------------------------------------------------
  31. PUT _ilm/policy/my_policy
  32. {
  33. "policy": {
  34. "phases": {
  35. "warm": {
  36. "min_age": "10d",
  37. "actions": {
  38. "forcemerge": {
  39. "max_num_segments": 1
  40. }
  41. }
  42. },
  43. "delete": {
  44. "min_age": "30d",
  45. "actions": {
  46. "delete": {}
  47. }
  48. }
  49. }
  50. }
  51. }
  52. PUT my-index-000001
  53. POST _ilm/stop
  54. --------------------------------------------------
  55. //////////////////////////
  56. [source,console]
  57. --------------------------------------------------
  58. POST _ilm/start
  59. --------------------------------------------------
  60. // TEST[continued]
  61. If the request succeeds, you receive the following result:
  62. [source,console-result]
  63. --------------------------------------------------
  64. {
  65. "acknowledged": true
  66. }
  67. --------------------------------------------------