Call RevokeUserPermission to revoke user permissions.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | RevokeUserPermission |
Required parameter. Value: RevokeUserPermission. |
DbId | String | Yes | 142345 |
The ID of the database. |
DsType | String | Yes | DATABASE |
The resource type. For more information about the valid values and descriptions, see GrantUserPermission API . |
PermTypes | String | Yes | QUERY |
The permission type. For the values and descriptions, see GrantUserPermission API . |
Tid | Long | Yes | -1 |
The ID of the tenant. Note The tenant ID is taken from the avatar in the upper-right corner of the system. For
more information, see Tenant ID and Tenant .
|
UserAccessId | String | Yes | 123 |
The ID of the user permission. |
UserId | String | Yes | 1234 |
The user ID, which corresponds to the user ID in the GetUser API. Note Note that it is not the user's Alibaba Cloud Uid.
|
Logic | Boolean | No | false |
Indicates whether the database is a logical database. Valid values:
|
TableId | String | No | 1342345 |
The ID of the table. This parameter must be specified when you grant table permissions. |
TableName | String | No | table_name |
The name of the table. This parameter must be specified when you grant table permissions. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrorCode | String | UnknownError |
The error code. |
ErrorMessage | String | UnknownError |
The error message. |
RequestId | String | A99CD576-1E18-4E86-931E-C3CCE56DC030 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=RevokeUserPermission &<common request parameters>
Sample success responses
XML
format
<RequestId>A99CD576-1E18-4E86-931E-C3CCE56DC030</RequestId> <Success>true</Success>
JSON
Format
{ "RequestId": "A99CD576-1E18-4E86-931E-C3CCE56DC030", "Success": true }
Error codes
Go to the Error Center For more information, see error codes.