Deletes the public endpoint of a specified PolarDB cluster. The public endpoint can be the primary endpoint, the default cluster endpoint, or a custom cluster endpoint.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | CreateDBEndpointAddress |
The operation that you want to perform. Set the value to CreateDBEndpointAddress. |
DBClusterId | String | Yes | pc-************** |
The ID of the cluster. |
DBEndpointId | String | Yes | pe-************** |
The ID of the endpoint. Note You can call the DescribeDBClusterEndpoints operation to query endpoint IDs.
|
NetType | String | Yes | Public |
The network type of the endpoint. Set the value to Public (public network). |
ConnectionStringPrefix | String | No | test-1 |
The prefix of the new endpoint. The prefix must meet the following requirements:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6BD9CDE4-5E7B-4BF3-9BB8-83C73E****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=CreateDBEndpointAddress
&DBClusterId=pc-**************
&DBEndpointId=pe-**************
&NetType=Public
&<Common request parameters>
Sample success responses
XML
format
<CreateDBEndpointAddressResponse>
<RequestId>6BD9CDE4-5E7B-4BF3-9BB8-83C73E******</RequestId>
</CreateDBEndpointAddressResponse>
JSON
format
{
"RequestId": "6BD9CDE4-5E7B-4BF3-9BB8-83C73E******"
}
Error codes
For a list of error codes, visit the API Error Center.