You can call the ReleaseReadWriteSplittingConnection operation to release the read/write splitting endpoint of an ApsaraDB RDS instance.

Before you call this operation, make sure that the following requirements are met:

  • If the instance runs MySQL, the instance uses a shared proxy.
  • The read/write splitting feature is enabled for the instance.
  • The instance runs one of the following database versions and RDS editions:
    • MySQL 5.7 on RDS High-availability Edition with local SSDs
    • MySQL 5.6
    • SQL Server (cluster edition)

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ReleaseReadWriteSplittingConnection

The operation that you want to perform. Set the value to ReleaseReadWriteSplittingConnection.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the primary instance.

Response parameters

Parameter Type Example Description
RequestId String 5A77D650-27A1-4E08-AD9E-59008EDB6927

The ID of the request.

Examples

Sample requests

http(s)://rds.aliyuncs.com/?Action=ReleaseReadWriteSplittingConnection
&DBInstanceId=rm-uf6wjk5xxxxxxx
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<ReleaseReadWriteSplittingConnectionResponse>
	<RequestID>5A77D650-27A1-4E08-AD9E-59008EDB6927</RequestID>
</ReleaseReadWriteSplittingConnectionResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestID" : "5A77D650-27A1-4E08-AD9E-59008EDB6927"
}

Error codes

For a list of error codes, visit the API Error Center.