Describes the database accounts of a specified ApsaraDB for ClickHouse cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeAccounts |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp108z124a8o7**** |
| AccountName |
string |
No |
The name of the database account. Note
If this parameter is not specified, the operation queries information about all database accounts. |
testAccount |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. The value must be an integer that is greater than 0 and does not exceed the maximum value of the Integer data type. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries returned. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| RequestId |
string |
The request ID. |
F5178C10-1407-4987-9133-DE4DC9119F75 |
| PageNumber |
integer |
The page number. |
1 |
| Accounts |
object |
||
| Account |
array<object> |
The list of database accounts. |
|
|
object |
|||
| AccountStatus |
string |
The status of the database account. Valid values:
Note
Only database accounts that are configured using XML files can be in the AuthorityModifying state. |
Creating |
| AccountDescription |
string |
The description of the database account. |
test |
| AccountType |
string |
The type of the database account. Valid values:
|
Super |
| AccountName |
string |
The name of the database account. |
test |
| ConfigType |
string |
The configuration method of the database account. |
SQL |
Examples
Success response
JSON format
{
"TotalCount": 1,
"PageSize": 30,
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75",
"PageNumber": 1,
"Accounts": {
"Account": [
{
"AccountStatus": "Creating",
"AccountDescription": "test",
"AccountType": "Super",
"AccountName": "test",
"ConfigType": "SQL"
}
]
}
}
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.