RevokeTablePermission

更新时间:
复制 MD 格式

Revokes permissions on a table 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 associated with the MaxCompute project. You can log on to the DataWorks console and go to the Workspace page to obtain the ID.

12345

MaxComputeProjectName

string

Yes

The name of the MaxCompute project to which the table belongs. You can log on to the DataWorks console and go to the SettingCenter page to obtain the name.

aMaxcomputeProjectName

TableName

string

Yes

The name of the MaxCompute table. You can call the SearchMetaTables operation to query the name.

aTableName

Actions

string

Yes

The permissions that you want to revoke. Separate multiple permissions with commas (,). You can revoke only the SELECT, DESCRIBE, and DOWNLOAD permissions on MaxCompute tables.

Select,Describe

RevokeUserName

string

No

The Alibaba Cloud account from which you want to revoke permissions. Use the same format as the account used to access the MaxCompute project.

  • If the account is an Alibaba Cloud account, the value is in the ALIYUN$+Account name format.

  • If the account is a RAM user, the value is in the RAM$+Account name format.

You must specify either this parameter or the RevokeUserId parameter. If you specify both this parameter and the RevokeUserId parameter and the parameter values are different, the value of the RevokeUserId parameter prevails.

RAM$dataworks_3h1_1:stsramuser

RevokeUserId

string

No

The ID of the Alibaba Cloud account from which you want to revoke permissions. You can log on to the DataWorks console and go to the Security Settings page to obtain the ID. You must specify either this parameter or the RevokeUserName parameter. If you specify both this parameter and the RevokeUserName parameter and the parameter values are different, the value of this parameter prevails.

267842600408993176

Response elements

Element

Type

Description

Example

object

RevokeSuccess

boolean

Indicates whether the permissions are revoked.

true

RequestId

string

The request ID.

0bc1ec92159376****

Examples

Success response

JSON format

{
  "RevokeSuccess": true,
  "RequestId": "0bc1ec92159376****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.