Modifies a permission template.
Operation description
Your Data Management (DMS) system role must be DBA or administrator. For more information, see View system roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:UpdateAuthorityTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
integer |
Yes |
The ID of the permission template. |
1563 |
| Name |
string |
Yes |
The name of the permission template. Note
You must specify the Name or Description parameter. Otherwise, the API call fails. |
test_template. |
| Description |
string |
Yes |
The description of the permission template. Note
You must specify the Name or Description parameter. Otherwise, the API call fails. |
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 ID of the request. |
4E1D2B4D-3E53-4ABC-999D-1D2520B3471A |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request fails. |
UnknownError |
| AuthorityTemplateView |
object |
The details of the permission template. |
|
| TemplateId |
integer |
The ID of the permission template. |
1563 |
| CreatorId |
integer |
The ID of the user who created the permission template. |
12*** |
| Name |
string |
The name of the permission template. |
test_template. |
| Description |
string |
The description of the permission template. |
This template is used for testing. |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Tid |
integer |
The ID of the tenant. |
3*** |
Examples
Success response
JSON format
{
"RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3471A",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"AuthorityTemplateView": {
"TemplateId": 1563,
"CreatorId": 0,
"Name": "test_template.",
"Description": "This template is used for testing."
},
"Success": true,
"Tid": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.