Revokes the access permissions on one or more databases from a specified PolarDB standard 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 No RevokeAccountPrivilege

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

AccountName String Yes testacc

The name of the account.

Note You can specify only a standard account.
DBClusterId String Yes pc-****************

The ID of the PolarDB cluster.

DBName String Yes testdb

The names of the databases. If you need to specify multiple database names, separate the names with commas (,).

Response parameters

Parameter Type Example Description
RequestId String 2FED790E-FB61-4721-8C1C-07C627******

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=RevokeAccountPrivilege
&AccountName=testacc
&DBClusterId=pc-****************
&DBName=testdb
&<Common request parameters>

Sample success responses

XML format

<RevokeAccountPrivilegeResponse>
  <RequestId>2FED790E-FB61-4721-8C1C-07C627******</RequestId>
</RevokeAccountPrivilegeResponse>

JSON format

{
   "RequestId": "2FED790E-FB61-4721-8C1C-07C627******"
}

Error codes

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