Memanggil ListDatabaseUserPermssions untuk mengkueri detail izin pengguna pada database tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListDatabaseUserPermssions |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
ID penyewa. Catatan
Untuk memperoleh ID penyewa, arahkan kursor ke gambar profil di pojok kanan atas konsol DMS. Untuk informasi selengkapnya, lihat Melihat informasi tentang penyewa saat ini. |
-1 |
| PermType |
string |
Yes |
Jenis izin. Nilai yang valid:
|
DATABASE |
| DbId |
string |
Yes |
ID database. |
123 |
| Logic |
boolean |
No |
Menentukan apakah database tersebut merupakan database logis. |
false |
| UserName |
string |
No |
Nama panggilan pengguna. |
search_user_name |
| PageNumber |
integer |
No |
Nomor halaman. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total catatan yang memenuhi kondisi. |
1 |
| RequestId |
string |
ID permintaan. |
68075D06-7406-4887-83A7-F558A4D28C13 |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| ErrorMessage |
string |
Pesan kesalahan. |
UnknownError |
| UserPermissions |
object |
||
| UserPermission |
array<object> |
Detail izin pengguna. |
|
|
array<object> |
|||
| DbId |
string |
The ID of the database. |
1234 |
| TableName |
string |
The name of the table. |
table_name |
| UserId |
string |
The ID of the user. |
14324 |
| SchemaName |
string |
The name of the database. |
xxx@xxxx:3306 |
| Logic |
boolean |
Indicates whether the database is a logical database. |
false |
| UserNickName |
string |
The nickname of the user. |
user_nick_name |
| InstanceId |
string |
The ID of the instance. |
1443 |
| PermDetails |
object |
||
| PermDetail |
array<object> |
The details of user permissions. |
|
|
object |
|||
| OriginFrom |
string |
The description of the entity that authorizes the permission. |
xxx grant |
| PermType |
string |
The type of the permission. Valid values:
|
QUERY |
| ExpireDate |
string |
The time when the permissions expire. |
2020-12-12 00:00:00 |
| CreateDate |
string |
The time when the permission was created. |
2019-12-12 00:00:00 |
| UserAccessId |
string |
The ID of the authorization record. |
13434 |
| ExtraData |
string |
The extra information. This parameter is reserved. |
DEFAULT |
| EnvType |
string |
The type of the environment to which the database belongs. |
product |
| ColumnName |
string |
The name of a column. |
column_name |
| DbType |
string |
The type of the database engine. |
mysql |
| DsType |
string |
The type of resources on which the user has permissions. |
DATABASE |
| TableId |
string |
The ID of the table. |
42345 |
| SearchName |
string |
The name that is used to search for the database. |
xxx |
| Alias |
string |
The alias of the database instance. |
instance_alias |
| Success |
boolean |
Menunjukkan apakah permintaan tersebut berhasil. |
true |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 1,
"RequestId": "68075D06-7406-4887-83A7-F558A4D28C13",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"UserPermissions": {
"UserPermission": [
{
"DbId": "1234",
"TableName": "table_name",
"UserId": "14324",
"SchemaName": "xxx@xxxx:3306",
"Logic": false,
"UserNickName": "user_nick_name",
"InstanceId": "1443",
"PermDetails": {
"PermDetail": [
{
"OriginFrom": "xxx grant",
"PermType": "QUERY",
"ExpireDate": "2020-12-12 00:00:00",
"CreateDate": "2019-12-12 00:00:00",
"UserAccessId": "13434",
"ExtraData": "DEFAULT"
}
]
},
"EnvType": "product",
"ColumnName": "column_name",
"DbType": "mysql",
"DsType": "DATABASE",
"TableId": "42345",
"SearchName": "xxx",
"Alias": "instance_alias"
}
]
},
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.