查看账号权限。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
clickhouse:DescribeAccountAuthority |
get |
*DBCluster
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
RegionId |
string |
否 |
地域 ID。您可以通过调用 DescribeRegions 接口查询地域 ID。 |
cn-hangzhou |
DBClusterId |
string |
是 |
集群 ID。 |
cc-bp1p816075e21**** |
AccountName |
string |
否 |
数据库账号。 |
test |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
DdlAuthority |
boolean |
是否具备 DDL 权限,取值说明:
|
true |
DmlAuthority |
string |
是否具备 DML 权限,取值说明:
|
all |
RequestId |
string |
请求 ID。 |
F5178C10-1407-4987-9133-DE4DC9119F75 |
TotalDatabases |
array |
所有数据库列表。 |
|
string |
所有数据库列表。 |
db1,db2 |
|
TotalDictionaries |
array |
所有字典列表。 |
|
string |
所有字典列表。 |
dt1,dt2 |
|
AllowDictionaries |
array |
已授权的字典列表。 |
|
string |
已授权的字典列表。 |
dt1 |
|
AllowDatabases |
array |
已授权的数据库列表。 |
|
string |
已授权的数据库列表。 |
db1 |
|
AccountName |
string |
数据库账号。 |
test |
示例
正常返回示例
JSON
格式
{
"DdlAuthority": true,
"DmlAuthority": "all",
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75",
"TotalDatabases": [
"db1,db2"
],
"TotalDictionaries": [
"dt1,dt2"
],
"AllowDictionaries": [
"dt1"
],
"AllowDatabases": [
"db1"
],
"AccountName": "test"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
500 | InternalError | An error occurred while processing your request. | 系统内部错误,请稍后重试 |
503 | ServiceUnavailable | An error occurred while processing your request. | 系统暂时不可用,请稍后重试 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。