Wait for snapshot

Phases allowed: delete.

Waits for the specified SLM policy to be executed before removing the index. This ensures that a snapshot of the deleted index is available.

Options

policy

(Required, string) Name of the SLM policy that the delete action should wait for.

Example

  1. PUT _ilm/policy/my_policy
  2. {
  3. "policy": {
  4. "phases": {
  5. "delete": {
  6. "actions": {
  7. "wait_for_snapshot" : {
  8. "policy": "slm-policy-name"
  9. }
  10. }
  11. }
  12. }
  13. }
  14. }