描述
授权账号访问数据库、权限,一个账号可关联一个或多个数据库。如果指定的账号对指定数据库已经具有访问权限,则会直接返回成功。
实例状态要求:
请求参数
返回参数
示例
请求示例
-
[backcolor=transparent]
https[backcolor=transparent]
:[backcolor=transparent]
//rds.aliyuncs.com/?Action=GrantAccountPrivilege
- [backcolor=transparent]&[backcolor=transparent]AccountName[backcolor=transparent]=[backcolor=transparent]testacc02
- [backcolor=transparent]&[backcolor=transparent]AccountPrivilege[backcolor=transparent]=[backcolor=transparent]readwrite
- [backcolor=transparent]&[backcolor=transparent]DBName[backcolor=transparent]=[backcolor=transparent]testdb03
- [backcolor=transparent]&[backcolor=transparent]DBInstanceId[backcolor=transparent]=[backcolor=transparent]riauvjz6zajfiq6ba1370329449201
- [backcolor=transparent]&<公共请求参数>
返回示例
XML格式:
-
[backcolor=transparent]
<GrantAccountPrivilegeResponse>
- [backcolor=transparent] [backcolor=transparent]<RequestId>[backcolor=transparent]81BC9559-7B22-4B7F-B705-5F56DEECDEA7[backcolor=transparent]</RequestId>
- [backcolor=transparent]</GrantAccountPrivilegeResponse>
JSON格式:
- [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent]"81BC9559-7B22-4B7F-B705-5F56DEECDEA7"
- [backcolor=transparent]}