Creates a permission template.
Operation description
Requires the DBA or administrator system role in Data Management (DMS). For more information about system roles, see View system roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateAuthorityTemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the permission template. |
test_template. |
| Description |
string |
No |
The description of the permission template. |
This template is used for testing. |
| Tid |
integer |
No |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| AuthorityTemplateView |
object |
The details of the permission template. |
|
| TemplateId |
integer |
The ID of the permission template. |
1563 |
| Name |
string |
The name of the permission template. |
test_template. |
| CreatorId |
integer |
The user ID of the template creator. |
12*** |
| 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-01-11 14:17:33 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Tid |
integer |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. |
3*** |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"AuthorityTemplateView": {
"TemplateId": 1563,
"Name": "test_template.",
"CreatorId": 0,
"Description": "This template is used for testing.",
"CreateTime": "2023-01-11 14:17:33"
},
"Success": true,
"Tid": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.