DescribeEnabledPrivileges
Queries the permission level and permissions supported for an AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.
Operation description
中心的公网接入地址:
adb.aliyuncs.com。地域的公网接入地址:
adb.<region-id>.aliyuncs.com。示例:adb.cn-hangzhou.aliyuncs.com。地域的 VPC 接入地址:
adb-vpc.<region-id>.aliyuncs.com。示例:adb-vpc.cn-hangzhou.aliyuncs.com。
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeEnabledPrivileges |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the cluster. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster. |
amv-bp14t95lun0w**** |
| AccountName |
string |
No |
The name of the database account. Note
You can call the DescribeAccounts operation to query the information about database accounts for a cluster, including the account name. |
test_accout |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
246F42E0-A475-15FF-96D2-8DC47FC2F289 |
| Data |
array<object> |
The queried permission level and permissions. |
|
|
array<object> |
|||
| Scope |
string |
The permission level. |
Global |
| Description |
string |
The description of the permission level. |
全局权限 |
| Privileges |
array<object> |
The queried permissions. |
|
|
object |
|||
| Key |
string |
The name of the permission. |
select |
| Description |
string |
The description of the permission. |
查询数据 |
Examples
Success response
JSON format
{
"RequestId": "246F42E0-A475-15FF-96D2-8DC47FC2F289",
"Data": [
{
"Scope": "Global",
"Description": "全局权限",
"Privileges": [
{
"Key": "select",
"Description": "查询数据"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.