Call the DescribeAvailableCrossRegion API to query the list of regions that can be used as the destination for cross-regional backups in the target Redis instance.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
InstanceId | String | Yes | redis-cn0212gzmh2xs**** | Instance ID. After specified, it can query the regions where the instance can be used for cross-regional backup. 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 |
|---|---|---|---|
TargetRegionIds | String[] | [
"cn-shanghai",
"cn-guangzhou"
] | The list of regions that can be used as the destination regions for cross-regional backup in the current instance. |
POST https://redis.cn-beijing.volcengineapi.com/?Action=DescribeAvailableCrossRegion&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": "DescribeAvailableCrossRegion", "Version": "2020-12-07", "Service": "Redis", "Region": "cn-beijing" }, "Result": { "TargetRegionIds": [ "cn-shanghai", "cn-guangzhou" ] } }
For more information, refer to Error codes.