Wait for snapshot
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
resp = 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"
}
}
}
}
}
}
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .