Modifies the endpoints of a specified PolarDB cluster, including the primary endpoint, the default cluster endpoint, custom cluster endpoints, and private domain names.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyDBEndpointAddress | The operation that you want to perform. Set the value to ModifyDBEndpointAddress. |
DBClusterId | String | Yes | pc-*************** | The ID of the cluster. Note You can call the DescribeDBClusters operation to query the details of all clusters that belong to your account, such as the cluster ID. |
DBEndpointId | String | Yes | pe-**************** | The ID of the endpoint. |
NetType | String | Yes | Public | The network type of the endpoint. Valid values:
|
ConnectionStringPrefix | String | No | example | The prefix of the new endpoint. The prefix must meet the following requirements:
|
PrivateZoneAddressPrefix | String | No | aliyundoc | The prefix of the private domain name. The prefix must meet the following requirements:
Note
|
PrivateZoneName | String | No | aliyundoc.com | The name of the private zone. Note This parameter takes effect only when NetType is set to Private. |
Port | String | No | 3306 | The port number. Valid values: 3000 to 5999. Note Only PolarDB for MySQL clusters support this parameter. If you leave this parameter empty, the default port 3306 is used. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D0CEC6AC-7760-409A-A0D5-E6CD86****** | The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=ModifyDBEndpointAddress
&DBClusterId=pc-***************
&DBEndpointId=pe-****************
&NetType=Public
&<Common Request Parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDBEndpointAddressResponse>
<RequestId>D0CEC6AC-7760-409A-A0D5-E6CD86******</RequestId>
</ModifyDBEndpointAddressResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "D0CEC6AC-7760-409A-A0D5-E6CD86******"
}
Error codes
For a list of error codes, visit the API Error Center.