原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/slm-api-execute-retention.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/slm-api-execute-retention.html
本地英文版地址: ../en/slm-api-execute-retention.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
Execute snapshot retention policy APIedit
Deletes any snapshots that are expired according to the policy’s retention rules.
Requestedit
POST /_slm/_execute_retention
Prerequisitesedit
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.
Descriptionedit
Manually applies the retention policy to force immediate removal of expired snapshots. The retention policy is normally applied according to its schedule.
Examplesedit
To force removal of expired snapshots:
POST /_slm/_execute_retention
Retention runs asynchronously in the background.