RevokeTablePermission

Updated at:

Revokes table permissions from a user.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.

  • An Alibaba Cloud account is in the format of ALIYUN$+account name.

  • A RAM user is in the format of RAM$+account name.

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.