You can call this operation to modify the endpoint of a cluster.


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

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyClusterConnectionString

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


ConnectionStringPrefix String Yes test-123

The prefix of the endpoint. The prefix must comply with the following rules:

  • The prefix can contain lowercase letters, digits, and hyphens (-) and must start with a letter.
  • The prefix can be up to 30 characters in length.
CurrentConnectionString String Yes

The current endpoint.

DBClusterId String Yes am-bp1xxxxxxxx47

The ID of the cluster.

Port Integer Yes 3306

The connection port.

Response parameters

Parameter Type Example Description
RequestId String 1AD222E9-E606-4A42-BF6D-8A4442913CEF

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=ModifyClusterConnectionString
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF"

Error codes

HttpCode Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified DBClusterId parameter does not exist. Check whether you specify the DBClusterId parameter correctly.

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