All Products
Search
Document Center

:RevokeColumnPermission

最終更新日:May 16, 2024

Revokes permissions on table fields from a user.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes RevokeColumnPermission

The operation that you want to perform.

Columns String Yes id,name

The fields for which you want to revoke permissions from a user. Separate multiple fields with commas (,).

You can revoke the permissions on the fields only in MaxCompute tables.

MaxComputeProjectName String Yes aMaxcomputeProjectName

The name of the MaxCompute project to which the fields belong. You can log on to the DataWorks console and go to the SettingCenter page to obtain the name of the MaxCompute project that you associate with the workspace.

RegionId String Yes cn-shanghai

The ID of the region where the MaxCompute project that contains the fields resides. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system determines the value of this parameter based on the endpoint that is used to call the operation.

TableName String Yes aTableName

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

WorkspaceId Long Yes 12345

The ID of the DataWorks workspace with which the MaxCompute project is associated. You can log on to the DataWorks console and go to the SettingCenter page to obtain the workspace ID.

RevokeUserName String No RAM$dataworks_3h1_1:stsramuser

The Alibaba Cloud account from which you want to revoke permissions. Specify this parameter in the format that is the same as the format of 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 RevokeUserId. If you specify both this parameter and RevokeUserId and the parameter values are different, the value of RevokeUserId prevails.

RevokeUserId String No 267842600408993176

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 RevokeUserName. If you specify both this parameter and RevokeUserName and the parameter values are different, the value of this parameter prevails.

Response parameters

Parameter Type Example Description
RequestId String 0bc1ec92159376****

The request ID.

RevokeSuccess Boolean true

Indicates whether the permissions are revoked.

Examples

Sample requests

http(s)://[Endpoint]/?Action=RevokeColumnPermission
&Columns=id,name
&MaxComputeProjectName=aMaxcomputeProjectName
&RegionId=cn-shanghai
&TableName=aTableName
&WorkspaceId=12345
&<Common request parameters>

Sample success responses

XML format

<RevokeSuccess>true</RevokeSuccess>
<RequestId>0bc1ec92159376****</RequestId>

JSON format

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

Error codes

For a list of error codes, see Service error codes.