Querying Distributor Instances
Function
This API is used to query instances that can be configured as distributors of the current instance.
- 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:update |
write |
- |
- |
rds:instance:modify |
- |
URI
- URI format
GET /v3/{project_id}/instances/{instance_id}/replication/distributors?offset={offset}&limit={limit}
- 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
The value cannot be empty.
Range
N/A
Default Value
N/A
instance_id
Yes
Definition
Instance ID.
Constraints
The value cannot be empty.
Range
N/A
Default Value
N/A
offset
No
Definition
Index offset. The query starts from the next piece of data indexed by this parameter.
Constraints
N/A
Range
The value must be a non-negative number.
Default Value
0: The query starts from the first data record.
limit
No
Definition
Number of records returned by a query.
Constraints
N/A
Range
1–100
Default Value
10
Request
Response
- Normal response
Table 2 Parameters Parameter
Type
Description
instances
Array of objects
Definition
List of instances.
For details, see Table 3.
total_count
Integer
Definition
Total number of instances.
Constraints
N/A
Range
N/A
Default Value
N/A
Table 3 instances element structure description Parameter
Type
Description
instance_id
String
Definition
Instance ID.
Constraints
N/A
Range
N/A
Default Value
N/A
instance_name
String
Definition
Instance name.
Constraints
N/A
Range
N/A
Default Value
N/A
data_vip
String
Definition
Floating IP address.
Constraints
N/A
Range
N/A
Default Value
N/A
- Example normal response
{ "instances": [ { "instance_id": "5a0269d7b18442888e16c31341114312in04", "instance_name": "rds-5898", "data_vip": "192.168.0.140" }, { "instance_id": "e76b3f4020464f92a9824a78e2183f62in04", "instance_name": "rds-6c62", "data_vip": "192.168.0.216" } ], "total_count": 2 } - 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