This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Wait for snapshot
editWait for snapshot
editPhases 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
edit-
policy
- (Required, string) Name of the SLM policy that the delete action should wait for.
Example
editresp = client.ilm.put_lifecycle( name="my_policy", policy={ "phases": { "delete": { "actions": { "wait_for_snapshot": { "policy": "slm-policy-name" } } } } }, ) print(resp)
const response = await client.ilm.putLifecycle({ name: "my_policy", policy: { phases: { delete: { actions: { wait_for_snapshot: { policy: "slm-policy-name", }, }, }, }, }, }); console.log(response);
PUT _ilm/policy/my_policy { "policy": { "phases": { "delete": { "actions": { "wait_for_snapshot" : { "policy": "slm-policy-name" } } } } } }