Enables the MySQL or HTTPS port for a specified ApsaraDB for ClickHouse cluster.
Operation description
You must manually enable the MySQL port for community-compatible clusters of version 20.8 or later that were created before December 1, 2021. For clusters created on or after this date, the MySQL port is enabled automatically.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:CreatePortsForClickHouse |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp108z124a8o7**** |
| PortType |
string |
Yes |
The port type. The value must be `mysql_port`. |
mysql_port |
| RegionId |
string |
No |
The region ID. Call the DescribeRegions operation to query the available region IDs. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2FED790E-FB61-4721-8C1C-07C627FA5A19 |
Examples
Success response
JSON format
{
"RequestId": "2FED790E-FB61-4721-8C1C-07C627FA5A19"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.