Call the CreateSQLAccount operation to create a privileged or standard account for an ApsaraDB for ClickHouse cluster.
Operation description
This operation applies only to community-compatible clusters that run version 20.8 or later and were created after December 1, 2021.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:CreateSQLAccount |
create |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp1p816075e21**** |
| AccountName |
string |
Yes |
The name of the database account.
|
test |
| AccountPassword |
string |
Yes |
The password for the database account.
|
Test1234 |
| AccountDescription |
string |
No |
The description of the database account.
|
测试使用 |
| AccountType |
string |
Yes |
The type of the database account. Valid values:
|
Super |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
F5178C10-1407-4987-9133-DE4DC9119F76 |
Examples
Success response
JSON format
{
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F76"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.