データベースアカウントの権限をクエリします。
操作説明
この API は、v21.8 以前のクラスターにのみ適用されます。それ以降のバージョンを実行しているクラスターでは、特権アカウントを使用して SQL ステートメントを実行し、一般ユーザの権限を変更する必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
clickhouse:DescribeAccountAuthority |
get |
*DBCluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。最新のリージョン一覧を取得するには、DescribeRegions 操作を呼び出してください。 |
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 |
例
成功レスポンス
JSONJSON
{
"DdlAuthority": true,
"DmlAuthority": "all",
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75",
"TotalDatabases": [
"db1,db2"
],
"TotalDictionaries": [
"dt1,dt2"
],
"AllowDictionaries": [
"dt1"
],
"AllowDatabases": [
"db1"
],
"AccountName": "test"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
| 503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。