You can call the AllocateInstancePublicConnection operation to apply for a public endpoint for an ApsaraDB RDS instance.


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 of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes AllocateInstancePublicConnection

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

ConnectionStringPrefix String Yes test1234

The prefix of the public endpoint. A complete public endpoint is in the following format: <Prefix>. <Database engine name> Example:

Note The prefix must be 5 to 40 characters in length. The prefix can contain letters, digits, and hyphens (-). However, the prefix cannot contain special characters. Special characters include ~ ! # % ^ & * = + | { } ; : ' " , < > / ?
DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

Port String Yes 3306

The public endpoint of the instance. Valid values: 1000 to 5999.

Response parameters

Parameter Type Example Description
RequestId String 65BDA532-28AF-4122-AA39-B382721EEE64

The ID of the request.


Sample requests

http(s):// Action=AllocateInstancePublicConnection
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": " 65BDA532-28AF-4122-AA39-B382721EEE64"

Error codes

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