start.asciidoc 1.7 KB

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