Querying the Name of the Replica Set in the Connection Address
API Description
This API is used to query the name of the replica set in the connection address.
Restrictions
This API applies only to replica set instances.
URI
- URI format
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/replica-set/name
- URI example
GET https://{endpoint}/v3/0d248ca90800d3902f79c014f11df3b8/instances/593416e7c9da4a4c97c6ad5b086b8ddfin02/replica-set/name
Table 1 Path parameters Name
Mandatory
Type
Description
project_id
Yes
String
Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.
instance_id
Yes
String
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
|
Name |
Type |
Description |
|---|---|---|
|
name |
String |
Name of the replica set in the connection address. |
Status code: 406
|
Name |
Type |
Description |
|---|---|---|
|
ErrorResponse |
Array of Table 5 objects |
This operation is not allowed because the instance is not a replica set instance. |
|
Name |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code returned when a task submission exception occurs. |
|
error_msg |
String |
Error description returned when a task submission exception occurs. |
- Example response
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
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