Call ModifyCrossRegionBackupPolicy API to modify the cross-regional backup policy of the target Redis instance.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
InstanceId | String | Yes | redis-cn0212gzmh2xs**** | Instance ID. tip You can call DescribeDBInstances to query the basic information of all Redis instances in a target region, including instance IDs. |
Active | Boolean | Yes | true | Whether to enable the cross-regional backup function, the value range is as follows:
|
CrossBackupRegion | String | No | cn-shanghai | The ID of the destination region for cross-regional backup. tip
|
ClientToken | String | No | WbiAlPqJM6tMoSOYhTOYhT | To ensure the idempotence of requests and prevent duplicate submission of requests. The client generates the parameter values to ensure the uniqueness among different requests. Values are case-sensitive, no more than 127 ASCII characters. |
The current API has no specified response parameters. For more information, see Response structure.
POST https://redis.cn-beijing.volcengineapi.com/?Action=ModifyCrossRegionBackupPolicy&Version=2020-12-07 HTTP/1.1 Host: redis.cn-beijing.volcengineapi.com Content-Type: application/json; charset=utf-8 X-Date: 20201103T104027Z Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/Redis/request,SignedHeaders=content-type;host;x-date,Signature=**** { "InstanceId": "redis-cn0212gzmh2xs****", "Active": true, "CrossBackupRegion": "cn-shanghai" }
{ "ResponseMetadata": { "RequestId": "20230604110420100210023228002****", "Action": "ModifyCrossRegionBackupPolicy", "Version": "2020-12-07", "Service": "Redis", "Region": "cn-beijing" }, "Result": null }
For more information, refer to Error codes.