Grant the database access privilege to the account, i.e., the privilege the account has to the database. An account can have access to multiple databases.
For ease of management, RDS classifies the privileges. Currently, it provides the following two privileges
- ro: Read-only privilege, with which, the user can only read the data in the database, and cannot perform creation, insertion, deletion, change, etc.
- rw: Read-write privilege, with which, the user can perform addition, deletion, change and other operations on the database
-Support SQL Server Only

Request method


Request address


Name Type Required or not Default value Description
regionId String True Region code, with range detailed in Regions and Availability Zone Comparison Table
instanceId String True RDS instance ID, which uniquely identifies an RDS instance
accountName String True Account name; in the same instance, the account name cannot be duplicated.

Request parameter

Name Type Required or not Default value Description
accountPrivileges AccountPrivilege[ ] True Access Right to the Account


Name Type Required or not Default value Description
dbName String False Database Name, see Help Center Document: Name and Password Restrictions for specific rules
privilege String False Privilege of account to the database with the specific definition detailed in Enumeration Parameter Definition

Response parameter


Response code

Return code Description
200 OK
Update Time:2019-07-11 18:54:31