调用 ModifyBackupPolicy 接口修改备份策略。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-21a3333b**** | 实例 ID。 |
BackupRetentionPeriod | Integer | 否 | 7 | 备份保留天数,取值范围为 7~365,默认值为 7。 |
FullBackupTime | String | 否 | 00:00Z-01:00Z | 执行备份任务的时间。格式:HH:mmZ-HH:mmZ(UTC 时间)。 |
FullBackupPeriod | String | 否 | Monday | 全量备份周期。多个取值用英文逗号(,)隔开。取值:
|
IncrementBackupFrequency | Integer | 否 | 2 | 增量备份频率。取值: 1 、2 、4 、6 ,单位:小时。 |
null
POST /?Action=ModifyBackupPolicy&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "postgres-ca7b7019****", "BackupRetentionPeriod": 7, "FullBackupPeriod": "Monday,Wednesday,Friday,Sunday", "FullBackupTime": "02:00Z-03:00Z", "IncrementBackupFrequency": 2 }
{ "ResponseMetadata": { "RequestId": "2023080411191113E74BF9DC0908068A0B", "Action": "ModifyBackupPolicy", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": null }