Loading

Wait for snapshot

Phases allowed: delete.

Waits for the specified SLM policy to be executed before removing the index. This only checks that an SLM policy has had a successful execution at some point after the wait action has started. It does not ensure that a snapshot of the index is available before deletion.

policy
(Required, string) Name of the SLM policy that the delete action should wait for.
				PUT _ilm/policy/my_policy
					{
  "policy": {
    "phases": {
      "delete": {
        "actions": {
          "wait_for_snapshot" : {
            "policy": "slm-policy-name"
          }
        }
      }
    }
  }
}