主机安全服务(新版)HSS-修改存储库绑定的备份策略:请求示例

时间:2023-12-25 17:37:40

请求示例

修改备份策略,目标备份策略ID为af4d08ad-2b60-4916-a5cf-8d6a23956dda。

PUT https://{endpoint}/v5/{project_id}/backup/policy

{
  "enabled" : true,
  "policy_id" : "af4d08ad-2b60-4916-a5cf-8d6a23956dda",
  "operation_definition" : {
    "day_backups" : 0,
    "max_backups" : -1,
    "month_backups" : 0,
    "retention_duration_days" : 5,
    "timezone" : "UTC+08:00",
    "week_backups" : 0,
    "year_backups" : 0
  },
  "trigger" : {
    "properties" : {
      "pattern" : [ "FREQ=DAILY;INTERVAL=2;BYHOUR=14;BYMINUTE=00" ]
    }
  }
}
support.huaweicloud.com/api-hss2.0/UpdateBackupPolicyInfo.html