All Products
Search
Document Center

ApsaraDB RDS:ModifyDBProxyEndpointAddress

Last Updated:Jul 05, 2024

Changes an endpoint that is used to connect to the dedicated proxy of an ApsaraDB RDS instance.

Operation description

Supported database engines

  • MySQL
  • PostgreSQL

References

Note Before you call this operation, read the following documentation and make sure that you fully understand the prerequisites and impacts of this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The instance ID. You can call the DescribeDBInstances operation to query the instance ID.

rm-t4n3a****
DBProxyEndpointIdstringYes

The ID of the dedicated proxy endpoint. You can call the DescribeDBProxyEndpoint operation to query the ID of the proxy endpoint.

ta9um4****
DBProxyNewConnectStringstringNo

The new prefix of the proxy endpoint. Enter a prefix.

Note You must specify at least one of the DBProxyNewConnectString and DBProxyNewConnectStringPort parameters.
test123456
DBProxyNewConnectStringPortstringNo

The port number that is associated with the proxy endpoint. Enter a port number.

Note You must specify at least one of the DBProxyNewConnectString and DBProxyNewConnectStringPort parameters.
3307
DBProxyConnectStringNetTypestringNo

The network type of the proxy endpoint. Valid values:

  • Public: Internet
  • VPC: virtual private cloud (VPC)
  • Classic: classic network

If the instance runs MySQL, the default value of this parameter is Classic.

Note If the instance runs PostgreSQL, you must set this parameter to Public or VPC.
Public
DBProxyEngineTypestringNo

A reserved parameter. You do not need to specify this parameter.

normal

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A

Examples

Sample success responses

JSONformat

{
  "RequestId": "50F6C32B-DD73-4DA1-ADA2-0EAF2B0FCD8A"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidConnectionString.FormatSpecified connection string is not valid.The endpoint of the RDS instance is invalid. The prefix of the endpoint must be 5 to 40 characters in length.
400InvalidPort.MalformedSpecified port is not valid.The port number is invalid.
400InvalidConnectionString.DuplicateSpecified connection string already exists in the Aliyun RDS.The endpoint is duplicate. Specify a different endpoint.
400InvalidConnectionStringOrPort.DuplicateSpecified connection string or port want to be modified is the same with current net type.The endpoint or the port number is duplicate. Modify the endpoint or the port number.
400InvalidDBInstanceNameSpecified parameter DBInstanceName is not valid.The value of the DBInstanceName parameter is invalid. Check that the value of this parameter is not null or an empty string.
400OtherEndpoint.ExistOther endpoint already exist.-
400MaxscaleNotSupportCurrent custins can not support Maxscale.This operation is not supported for instances with maxscale.
400ParameterLeastAssociateMust input at least one optional parameterYou must enter at least one selectable parameter.
403ParameterLeastAssociateMust input at least one optional parameter.The point in time or the data backup file cannot be left unspecified. Specify a point in time or a data backup file and try again.
403NetTypeChangeTimesExceededExceeding the daily net type change times of the DB instance.-
403IncorrectDBInstanceEngineCurrent DB Instance engine does not support this operation.The operation failed. The operation is not supported for the database engine that is run on the RDS instance.
403IncorrectKindCodeCurrent custins kindCode does not support this operation.The operation failed. The operation is not supported for the database engine that is run on the RDS instance.
403IncorrectDBInstanceTypeCurrent DB instance type does not support this operation.The operation failed. The RDS instance is not in a ready state.
403IncorrectDBInstanceStateCurrent DB instance state does not support this operation.-
404InvalidConnectionString.NotFoundSpecified connection string or net type is not found.The endpoint cannot be found. Check the endpoint.
404InsufficientResourceCapacityThere is insufficient capacity available for the requested instance.-
404Endpoint.NotFoundSpecified endpoint is not found.The port that is associated with the dedicated proxy endpoint cannot be found.
404Maxscale.NotFoundThe related maxscale instance is not found.The operation failed. No associated MaxScale instances can be found.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-19The Error code has changedView Change Details
2023-09-08The Error code has changedView Change Details
2022-06-08The Error code has changed. The request parameters of the API has changedView Change Details