Grant

Updated at:

Grants permissions to an account.

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 Grant

The operation that you want to perform. Set the value to Grant.

ClusterId String Yes ld-bp150tns0sjxs****

The ID of the ApsaraDB for HBase cluster. You can call the DescribeInstances operation to query the cluster ID.

AccountName String Yes test01

The account name.

Namespace String Yes default

The namespace. You can use the asterisk (*) as a wildcard character to indicate all namespaces.

TableName String Yes table

The table name. You can use the asterisk (*) as a wildcard character to indicate all tables.

AclActions String Yes READ,WRITE

The permissions. Separate multiple permissions with commas (,).

  • READ: the read permission.
  • WRITE: the write permission.
  • ADMIN: the administrative permission.
  • TRASH: the clear permission.

Response parameters

Parameter

Type

Example

Description

RequestId String 9CBF8DF0-4931-4A54-9B60-4C6E1AB5****

The request ID.

Examples

Sample requests

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

访问错误中心查看更多错误码。