RevokeTablePermission
Revokes table permissions from a user.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
integer |
Yes |
The ID of the DataWorks workspace to which the MaxCompute table belongs. You can log on to the DataWorks console and go to the Workspace Settings page to obtain the workspace ID. |
12345 |
| MaxComputeProjectName |
string |
Yes |
The name of the MaxCompute project that contains the table from which you want to revoke permissions. You can log on to the DataWorks console and go to the Workspace Settings page to obtain the name of the MaxCompute project associated with the DataWorks workspace. |
aMaxcomputeProjectName |
| TableName |
string |
Yes |
The name of the MaxCompute table from which you want to revoke permissions. You can call the SearchMetaTables operation to obtain the MaxCompute table name. |
aTableName |
| Actions |
string |
Yes |
The operation permissions on the table that you want to revoke. Separate multiple operation permissions with commas (,). Currently, only the Select, Describe, and Download operation permissions on MaxCompute tables can be revoked. |
Select,Describe |
| RevokeUserName |
string |
No |
The name of the Alibaba Cloud account from which you want to revoke table permissions. The account format is the same as the account format used in MaxCompute.
You only need to specify either this parameter or the RevokeUserId parameter. If both this parameter and the RevokeUserId parameter are specified in the parameter settings but have different values, the value of the RevokeUserId parameter takes precedence. |
RAM$dataworks_3h1_1:stsramuser |
| RevokeUserId |
string |
No |
The Alibaba Cloud account ID from which you want to revoke table permissions. You can log on to the DataWorks console and go to the Security Settings page to obtain the account ID. You only need to specify either this parameter or the RevokeUserName parameter. If both this parameter and the RevokeUserName parameter are specified in the parameter settings but have different values, the value of the RevokeUserId parameter takes precedence. |
267842600408993176 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0bc1ec92159376**** |
| RevokeSuccess |
boolean |
Indicates whether the revocation was successful. |
true |
Examples
Success response
JSON format
{
"RequestId": "0bc1ec92159376****",
"RevokeSuccess": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.