Call the DescribeCrossRegionBackupPolicy API to query the cross-region 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 the DescribeDBInstances API to query the basic information of all Redis instances in the target region, including the instance ID. |
Name | Type | Example | Description |
|---|---|---|---|
InstanceId | String | redis-cn0212gzmh2xs**** | Instance ID. |
Active | Boolean | true | Whether the cross-regional backup function of the current instance is enabled or not, and the value range is as follows:
|
CrossBackupRegion | String | ap-southeast-3 | The ID of the destination region for cross-regional backup. |
TTL | Integer | 7 | The retention days for cross-regional backup files are 7 days by default. |
POST https://redis.cn-beijing.volcengineapi.com/?Action=DescribeCrossRegionBackupPolicy&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****" }
{ "ResponseMetadata": { "RequestId": "20230604110420****10023228002****", "Action": "DescribeCrossRegionBackupPolicy", "Version": "2020-12-07", "Service": "Redis", "Region": "cn-beijing" }, "Result": { "InstanceId": "redis-cn0212gzmh2xs****", "Active": true, "CrossBackupRegion": "cn-shanghai", "TTL": 7 } }
For more information, refer to Error codes.