Querying DR Instances in Batches
Function
This API is used to query DR instances in batches.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about request header parameters.
Authorization Information
- If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
- 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 |
|---|---|---|---|---|---|
|
rds:instance:listAll |
read |
- |
- |
rds:instance:list |
- |
Constraints
RDS for PostgreSQL 12 and later versions support cross-cloud or cross-region DR.
URI
- URI format
- Parameter description
Table 1 Parameters Parameter
Mandatory
Description
project_id
Yes
Definition
Project ID of a tenant in a region.
To obtain the value, see Obtaining a Project ID.
Constraints
N/A
Range
N/A
Default Value
N/A
Request
Response
- Normal response
Table 2 Parameters Parameter
Type
Description
instance_dr_relations
Array of objects
Definition
DR instance list.
For details, see Table 3.
Table 3 Data structure description of instance_dr_relations Parameter
Type
Description
instance_id
String
Definition
Instance ID in the current region.
Range
N/A
master_instance
Object
Definition
Primary instance information.
For details, see Table 4.
slave_instances
Array of objects
Definition
DR instance information.
For details, see Table 5.
- Example normal response
{ "instance_dr_relations": [ { "instance_id": "b5e2c7fcef8b4c2f8fd8d80d73344756in03", "master_instance": { "instance_id": "fab4e3df67c24aa0a5b41bc2bcb41918in03", "region": "aRegion", "project_id": "08fd4e669e00d57d2ffec01352c7cb77", "project_name": "masterProjectName" } }, { "instance_id": "fab4e3df67c24aa0a5b41bc2bcb41918in03", "slave_instances": [ { "instance_id": "b5e2c7fcef8b4c2f8fd8d80d73344756in03", "region": "bRegion", "project_id": "054b61972980d4552f0bc00ac8d3f5cd", "project_name": "slaveProjectName" } ] } ] } - Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
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