Help Center> GeminiDB> API Reference> APIs v3 (Recommended)> Disaster Recovery> Querying Regions Where a Dual-Active Relationship Can Be Created Between Two Instances
Updated on 2023-11-21 GMT+08:00

Querying Regions Where a Dual-Active Relationship Can Be Created Between Two Instances

Function

This API is used to query the regions where a dual-active relationship can be created between two instances.

Constraints

This API supports GeminiDB Redis and GeminiDB Cassandra instances.

URI

GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/disaster-recovery/regions

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID.

instance_id

Yes

String

Instance ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

region_codes

Array of strings

Region where a dual-active relationship can be created between two instances.

The creation of a dual-active instance is contingent on network configurations and necessary conditions. A dual-active relationship is not necessarily created between two instances even though there are available regions as such.

Example Requests

URI example

GET https://{Endpoint}/v3/2900b7b8d03e4619b8db8d43bc6234ee/instances/3149aee486d748f68db1ee81e95b9f56in06/disaster-recovery/regions

Example Responses

Status code: 200

Success.

{ 
  "region_codes" : [ "cn-north-4" ] 
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.