Queries permission templates. The response includes the template name, creator, and total number of templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListAuthorityTemplate |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SearchKey |
string |
No |
The keyword to search for permission templates. |
test_template |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
|
10 |
| PageNumber |
integer |
No |
The page number. |
1 |
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which you can use to troubleshoot issues. |
31853A2B-DC9D-5B39-8492-D2AC8BCF550E |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| Tid |
integer |
The ID of the tenant. |
3*** |
| AuthorityTemplateViewList |
object |
||
| AuthorityTemplateView |
array<object> |
The permission templates. |
|
|
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. |
permission_template_test |
| Description |
string |
The description of the permission template. |
This template is used for testing. |
| CreateTime |
string |
The time when the permission template was created, in the yyyy-MM-DD HH:mm:ss format. |
2023-10-26 11:37:47 |
| TotalCount |
integer |
The total number of permission templates. |
10 |
Examples
Success response
JSON format
{
"RequestId": "31853A2B-DC9D-5B39-8492-D2AC8BCF550E",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Tid": 0,
"AuthorityTemplateViewList": {
"AuthorityTemplateView": [
{
"TemplateId": 2592,
"CreatorId": 0,
"Name": "permission_template_test",
"Description": "This template is used for testing.",
"CreateTime": "2023-10-26 11:37:47"
}
]
},
"TotalCount": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.