Revokes permissions on resources from Data Management (DMS) users by using a permission template.
Operation description
You must be a database administrator (DBA) or a DMS administrator. For more information about how to view system roles, see View system roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:RevokeTemplateAuthority |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
integer |
Yes |
The ID of the permission template. |
1563 |
| UserIds |
string |
Yes |
The IDs of users from whom you want to revoke permissions by using a permission template. |
[12***,34***,56***] |
| 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. |
C51420E3-144A-4A94-B473-8662FCF4AD10 |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Result |
boolean |
Indicates whether the permissions were revoked from the users. |
true |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "C51420E3-144A-4A94-B473-8662FCF4AD10",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Result": true,
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.