Memanggil operasi ListAuthorityTemplate untuk mendapatkan daftar templat izin, termasuk pembuat templat, nama templat, dan jumlah total templat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListAuthorityTemplate |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SearchKey |
string |
No |
Kata kunci nama templat izin. |
测试模板 |
| PageSize |
integer |
No |
Jumlah templat izin yang ditampilkan per halaman. Nilai valid:
|
10 |
| PageNumber |
integer |
No |
Nomor halaman. |
1 |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant atau ListUserTenants untuk mendapatkan nilai parameter ini. |
3*** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan yang digunakan untuk melacak log dan memecahkan masalah. |
31853A2B-DC9D-5B39-8492-D2AC8BCF550E |
| ErrorCode |
string |
Kode kesalahan yang dikembalikan ketika permintaan gagal. |
UnknownError |
| ErrorMessage |
string |
Paket kesalahan yang dikembalikan ketika panggilan gagal. |
UnknownError |
| Success |
boolean |
Apakah permintaan berhasil. Nilai valid:
|
true |
| Tid |
integer |
ID penyewa. |
3*** |
| AuthorityTemplateViewList |
object |
||
| AuthorityTemplateView |
array<object> |
Daftar templat izin. |
|
|
object |
|||
| TemplateId |
integer |
The ID of the permission template. |
2592 |
| CreatorId |
integer |
The ID of the user who created the permission template. |
522**** |
| Name |
string |
The name of the permission template. |
权限模板测试 |
| Description |
string |
The description of the permission template. |
该模板为测试使用。 |
| CreateTime |
string |
The time when the permission template was created. The time is in the yyyy-MM-DD HH:mm:ss format. |
2023-10-26 11:37:47 |
| TotalCount |
integer |
Jumlah total templat izin. |
10 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "31853A2B-DC9D-5B39-8492-D2AC8BCF550E",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Tid": 0,
"AuthorityTemplateViewList": {
"AuthorityTemplateView": [
{
"TemplateId": 2592,
"CreatorId": 0,
"Name": "权限模板测试",
"Description": "该模板为测试使用。",
"CreateTime": "2023-10-26 11:37:47"
}
]
},
"TotalCount": 10
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.