You can call the DeleteDBProxyEndpointAddress operation to delete an endpoint that is used to connect to the database proxy of an ApsaraDB RDS instance.

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

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDBProxyEndpointAddress

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

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

DBInstanceId String Yes rm-t4n3a****

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

DBProxyEndpointId String Yes ta9um4****

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

DBProxyConnectStringNetType String Yes Public

The network type of the proxy endpoint. Valid values:

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

Default value: Classic.

Note
  • If the instance uses standard SSDs or enhanced SSDs (ESSDs) and the network type of the proxy endpoint is VPC, you cannot delete the proxy endpoint.
  • If the instance runs PostgreSQL, you can set this parameter to Public or VPC.
DBProxyEngineType String No normal

An internal parameter. You do not need to specify this parameter.

Response parameters

Parameter Type Example Description
RequestId String 343356C6-64B2-4245-ADEB-C9BD165EDD11

The ID of the request.

Examples

Sample requests

http(s)://rds.aliyuncs.com/?Action=DeleteDBProxyEndpointAddress
&RegionId=cn-hangzhou
&DBInstanceId=m-t4n3axxxxx
&DBProxyEndpointId=ta9um4xxxxx
&DBProxyConnectStringNetType=Public
&<Common request parameters>

Sample success responses

XML format

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

<DeleteDBProxyEndpointAddressResponse>
<RequestId>343356C6-64B2-4245-ADEB-C9BD165EDD11</RequestId>
</DeleteDBProxyEndpointAddressResponse>

JSON format

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

{
  "RequestId" : "343356C6-64B2-4245-ADEB-C9BD165EDD11"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidVpcInstanceId Specified vpc instance id is not valid. The error message returned because the VPC ID that you specified is invalid.
400 IncorrectDBInstanceNetType Current DB instance net type does not support this operation. The error message returned because the network type of the instance does not support this operation.
400 AtLeastOneNetTypeExists The current database instance network type does not support the operation The error message returned because the network type of the instance does not support this operation.
400 InvalidEndPoint.Format The specified EndPoint is not valid. The error message returned because the DBProxyEndpointId parameter is empty or the proxy endpoint ID specified by the DBProxyEndpointId parameter cannot be found.
400 InvalidDBInstanceName Specified parameter DBInstanceName is not valid. The error message returned because the value of the DBInstanceName parameter is invalid. Check whether the value is null or an empty string.
403 IncorrectDBInstanceType Current DB instance type does not support this operation. The error message returned because this operation is not supported when the instance is in the current state.
403 IncorrectDBInstanceState Current DB instance state does not support this operation. The error message returned because this operation is not supported when the instance is in the current state.
403 IncorrectKindCode The current KindCode of the custins does not support the operation. The error message returned because the configuration of the instance does not support this operation. Check the configuration of the instance.
404 Endpoint.NotFound Specified endpoint is not found. The error message returned because the port number that you specified cannot be found.

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