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
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
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot