start.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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,console-result]
  61. --------------------------------------------------
  62. {
  63. "acknowledged": true
  64. }
  65. --------------------------------------------------