retry-policy.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[ilm-retry-policy]]
  4. === Retry policy execution API
  5. ++++
  6. <titleabbrev>Retry policy</titleabbrev>
  7. ++++
  8. Retry executing the policy for an index that is in the ERROR step.
  9. [[ilm-retry-policy-request]]
  10. ==== {api-request-title}
  11. `POST <index>/_ilm/retry`
  12. [[ilm-retry-policy-prereqs]]
  13. ==== {api-prereq-title}
  14. * If the {es} {security-features} are enabled, you must have the `manage_ilm`
  15. privileges on the indices being managed to use this API. For more information,
  16. see <<security-privileges>>.
  17. [[ilm-retry-policy-desc]]
  18. ==== {api-description-title}
  19. Sets the policy back to the step where the error occurred and executes the step.
  20. Use the <<ilm-explain-lifecycle, ILM Explain API>> to determine if an index is in the ERROR
  21. step.
  22. [[ilm-retry-policy-path-params]]
  23. ==== {api-path-parms-title}
  24. `<index>`::
  25. (Required, string) Identifier for the indices to retry in comma-separated format.
  26. [[ilm-retry-policy-query-params]]
  27. ==== {api-query-parms-title}
  28. include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  29. [[ilm-retry-policy-example]]
  30. ==== {api-examples-title}
  31. The following example retries the policy for `my_index`.
  32. [source,js]
  33. --------------------------------------------------
  34. POST my_index/_ilm/retry
  35. --------------------------------------------------
  36. // NOTCONSOLE
  37. If the request succeeds, you receive the following result:
  38. [source,js]
  39. --------------------------------------------------
  40. {
  41. "acknowledged": true
  42. }
  43. --------------------------------------------------
  44. // NOTCONSOLE