Mengkueri detail templat izin.
Deskripsi operasi
Peran sistem Anda di Data Management (DMS) adalah administrator atau administrator basis data (DBA). Untuk informasi lebih lanjut tentang cara melihat peran sistem Anda, lihat Lihat peran sistem Anda.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetAuthorityTemplate |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
integer |
Yes |
ID templat izin. |
1563 |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant atau ListUserTenants untuk mendapatkan ID penyewa. |
3*** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| ErrorMessage |
string |
Pesan kesalahan. |
UnknownError |
| AuthorityTemplateView |
object |
Detail templat izin. |
|
| TemplateId |
integer |
ID templat izin. |
1563 |
| CreatorId |
integer |
ID pengguna yang membuat templat izin. |
12*** |
| Name |
string |
Nama templat izin. |
测试模板。 |
| Description |
string |
Deskripsi templat. |
此模板用于业务测试。 |
| CreateTime |
string |
Waktu saat templat izin dibuat. Waktu dalam format yyyy-MM-DD HH:mm:ss. |
2023-01-01 00:00:00 |
| AuthorityTemplateItemList |
object |
||
| AuthorityTemplateItem |
array<object> |
The resource information in the permission template. |
|
|
object |
|||
| ItemId |
integer |
The ID of the resource. |
12*** |
| TemplateId |
integer |
The ID of the permission template. |
1563 |
| ModifierId |
integer |
The ID of the user who modified the resource. |
51*** |
| ResourceType |
string |
The type of the resource. Valid values:
|
INSTANCE |
| InstanceId |
integer |
The ID of the instance. |
188**** |
| DbId |
integer |
The ID of the database. |
43*** |
| TableName |
string |
The name of the table. |
ExampleTable |
| Attribute |
string |
Other information. For example, you can add the logon permission on an instance to the permission template. |
"permissionTypes": [ "LOGIN" ] |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Tid |
integer |
ID penyewa. Catatan
Untuk mendapatkan ID penyewa, arahkan penunjuk ke gambar profil di sudut kanan atas konsol DMS. Untuk informasi lebih lanjut, lihat Lihat informasi tentang penyewa saat ini. |
3*** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"AuthorityTemplateView": {
"TemplateId": 1563,
"CreatorId": 0,
"Name": "测试模板。",
"Description": "此模板用于业务测试。",
"CreateTime": "2023-01-01 00:00:00",
"AuthorityTemplateItemList": {
"AuthorityTemplateItem": [
{
"ItemId": 0,
"TemplateId": 1563,
"ModifierId": 0,
"ResourceType": "INSTANCE",
"InstanceId": 0,
"DbId": 0,
"TableName": "ExampleTable",
"Attribute": "\"permissionTypes\": [\n \"LOGIN\"\n ]"
}
]
}
},
"Success": true,
"Tid": 0
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.