Querying Regions Where a Active-Active Relationship Can Be Created
Function
This API is used to query the regions where a dual-active relationship can be created.
Constraints
This API can be used on GeminiDB Cassandra instances.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
gaussdbfornosql:instance:list
Read
-
-
nosql:backup:list
-
URI
GET /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 Request
URI example
GET https://{Endpoint}/v3/2900b7b8d03e4619b8db8d43bc6234ee/instances/3149aee486d748f68db1ee81e95b9f56in06/disaster-recovery/regions
Example Response
Status code: 200
Successful request
{
"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