Grants permissions to the service account of an AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster.

Description

If you need Alibaba Cloud technical support to perform operations on your AnalyticDB for MySQL cluster, you must grant permissions to the service account of your cluster. When the validity period of the authorization ends, the granted permissions are automatically revoked.

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 GrantOperatorPermission

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

DBClusterId String Yes am-bp1565u55p32****

The ID of the AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster.

Note You can call the DescribeDBClusters operation to query cluster IDs.
ExpiredTime String Yes 2022-11-30T00:00:00Z

The expiration time of the service account permissions. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Privileges String Yes Control

The name of the permissions. Valid values:

  • Control: configuration permissions. The service account is granted permissions to query and modify cluster configurations.
  • Data: data permissions. The service account is granted permissions to query schemas, indexes, and SQL statements.

Response parameters

Parameter Type Example Description
RequestId String A438072A-E2E7-5509-9A3F-66293512A820

The ID of the request.

Examples

Sample requests

http(s)://adb.aliyuncs.com/?Action=GrantOperatorPermission
&DBClusterId=am-bp1565u55p32****
&ExpiredTime=2022-11-30T00:00:00Z
&Privileges=Control
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GrantOperatorPermissionResponse>
    <RequestId>A438072A-E2E7-5509-9A3F-66293512A820</RequestId>
</GrantOperatorPermissionResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "A438072A-E2E7-5509-9A3F-66293512A820"
}

Error codes

For a list of error codes, visit the API Error Center.