Delete snapshot lifecycle policy API
Delete snapshot lifecycle policy API
New API reference
For the most up-to-date API details, refer to Snapshot lifecycle management APIs.
Deletes an existing snapshot lifecycle policy.
Request
DELETE /_slm/policy/<snapshot-lifecycle-policy-id>
Prerequisites
If the Elasticsearch security features are enabled, you must have the manage_slm
cluster privilege to use this API. For more information, see Security privileges.
Description
Deletes the specified lifecycle policy definition. This prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots.
Path parameters
<policy-id>
(Required, string) ID of the snapshot lifecycle policy to delete.
Examples
resp = client.slm.delete_lifecycle(
policy_id="daily-snapshots",
)
print(resp)
response = client.slm.delete_lifecycle(
policy_id: 'daily-snapshots'
)
puts response
const response = await client.slm.deleteLifecycle({
policy_id: "daily-snapshots",
});
console.log(response);
DELETE /_slm/policy/daily-snapshots
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .