Mengambil daftar sumber daya dalam templat izin.
Deskripsi operasi
Peran sistem Anda di Data Management (DMS) harus berupa administrator atau DBA. Untuk informasi selengkapnya tentang cara Tampilan peran sistem Anda, lihat Tampilan peran sistem saya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetAuthorityTemplateItem |
list |
*全部资源
|
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 parameter ini. |
3*** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
5B96E35F-A58E-5399-9041-09CF9A1E46EA |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| ErrorMessage |
string |
Paket kesalahan. |
UnknownError |
| AuthorityTemplateItemList |
object |
||
| AuthorityTemplateItem |
array<object> |
Daftar templat izin. |
|
|
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 modifies 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 |
The additional information. For example, permissions to log on to an instance are added to the permission template. |
"permissionTypes": [ "LOGIN" ] |
| Success |
boolean |
Apakah permintaan berhasil. Nilai valid:
|
true |
| Tid |
integer |
ID penyewa. Catatan
Nilai ini ditampilkan saat Anda mengarahkan pointer ke ikon profil di sudut kanan atas Konsol. Untuk informasi selengkapnya, lihat Lihat informasi penyewa. |
3*** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5B96E35F-A58E-5399-9041-09CF9A1E46EA",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"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.