Deleting a Read Replica of an Instance
API Description
This API is used to delete a read replica.
Restrictions
- Only replica set instances have read replicas.
- Read replicas cannot be deleted from instances that have abnormal nodes.
URI
- URI format
DELETE https://{Endpoint}/v3/{project_id}/instances/{instance_id}/readonly-node
- URI example
https://dds.cn-north-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/readonly-node
Parameter |
Type |
IN |
Mandatory |
Description |
---|---|---|---|---|
X-Auth-Token |
string |
header |
Yes |
User token obtained from IAM. For details, see Authentication. |
project_id |
string |
path |
Yes |
Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID. |
instance_id |
string |
path |
Yes |
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. |
Requests
- Parameter description
Table 2 Request body parameters Parameter
Mandatory
Type
Description
node_list
Yes
Array of strings
List of read replica IDs.
- Example request:
{ "node_list": ["a66ae943020e49ed842dc6aa80ab2a13no02"] }
Responses
- Parameter description
Table 3 Response body parameters Parameter
Type
Description
job_id
String
Task ID. This parameter is returned only for pay-per-use DB instances.
order_id
String
Order ID. This parameter is returned only for yearly/monthly DB instances.
- Example response
{ "job_id" : "6ad4eb1f-73bd-4876-aa31-aa9a1e41c4bc" }
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