13.10. updateRepositoryAutoPrunePolicy
更新存储库的自动修剪策略
PUT /api/v1/repository/{repository}/autoprunepolicy/{policy_uuid}
授权: oauth2_implicit (repo:admin)
路径参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
path |
policy_uuid | 策略的唯一 ID | string |
path |
需要 仓库 | 存储库的完整路径。例如 namespace/name | 字符串 |
请求正文模式(application/json)
要应用到用户命名空间的策略配置
Name | 描述 | 模式 |
---|---|---|
所需 方法 | 用于修剪标签的方法(number_of_tags、create_date) | string |
需要 的值 | 用于修剪方法的值(标签数量(如 10 个,时间 delta,如 7d (7 天)) | |
tagPattern | 仅与此模式匹配的标签将被修剪 | string |
tagPatternMatches | 确定修剪的标签是否应该与 tagPattern 匹配 | 布尔值 |