You can call the ModifyDBInstanceConnectionString operation to modify the connection address of a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:ModifyDBInstanceConnectionString |
update |
*EnterpriseDBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The cluster ID. |
cc-xxxxx |
| ConnectionString |
string |
No |
The connection address. |
cc-2ze34****-clickhouse..clickhouseserver.pre.rds.aliyuncs.com |
| ConnectionStringPrefix |
string |
No |
The prefix of the endpoint for the database connection. |
cc-****-clickhouse |
| DisablePorts |
string |
No |
|
9001,8123 |
| DBInstanceNetType |
string |
No |
||
| ComputingGroupId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
| Data |
object |
The returned data. |
|
| DBInstanceID |
integer |
The cluster ID. |
cc-xxxxx |
| ConnectionString |
string |
The connection address. |
cc-2ze34****-clickhouse..clickhouseserver.pre.rds.aliyuncs.com |
| DBInstanceName |
string |
The cluster name. |
cc-xxxxx |
| DisabledPorts |
string |
The disabled database ports. |
9001,8123 |
Examples
Success response
JSON format
{
"RequestId": "xxx-xxx-xxx",
"Data": {
"DBInstanceID": 0,
"ConnectionString": "cc-2ze34****-clickhouse..clickhouseserver.pre.rds.aliyuncs.com",
"DBInstanceName": "cc-xxxxx",
"DisabledPorts": "9001,8123"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.