Modifies the endpoints of a PolarDB cluster, including the primary endpoint, default cluster endpoint, custom cluster endpoint, and private domain name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBEndpointAddress |
update |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the details of all clusters in your account, including cluster IDs. |
pc-*************** |
| DBEndpointId |
string |
Yes |
The endpoint ID. Note
You can call the DescribeDBClusterEndpoints operation to query endpoint IDs. |
pe-**************** |
| NetType |
string |
Yes |
The network type of the endpoint. Valid values:
|
Public |
| ConnectionStringPrefix |
string |
No |
The new prefix of the endpoint. The prefix must meet the following requirements:
|
example |
| PrivateZoneAddressPrefix |
string |
No |
The prefix of the private domain name. The prefix must meet the following requirements:
Note
|
aliyundoc |
| PrivateZoneName |
string |
No |
The name of the private domain zone. Note
This parameter is valid only when NetType is set to Private. |
aliyundoc.com |
| Port |
string |
No |
The port number. Valid values: 3000 to 5999. Note
|
3306 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D0CEC6AC-7760-409A-A0D5-E6CD86****** |
Examples
Success response
JSON format
{
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD86******"
}
Error response
JSON format
{
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD8660E9CC"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DnsConflict | ParamsError.DnsConflict(Dns is already used, ConnAddrCust:%s). | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.