获取实例所有账号权限

接口方法: GET

url 参数

请求参数

query

参数名称说明参数类型是否必填备注
InstanceName实例的名字string
ActionDescribeDBAccountPrivilegesstring
Version2018-06-14string

返回参数

参数名称说明参数类型是否必填备注
RequestIdstring
DatabaseAccounts将Array中的参数自动创建为模型,需要核对参数是否正确并增加描述array详细信息见下表

DatabaseAccounts

参数名称说明参数类型是否必填备注
DatabaseNamestring
AccountNamestring
Privilegestring
IpListstring

状态码

错误码(Code)错误提示(Message)http status code说明
InvalidParameterValueinvalid parameter value, parameter name: {parameter}400不合法的参数值, 参数名称: {参数}
InternalFailureinternal failure500内部错误

请求示例

https://open.cn-east-1.163yun.com/rds?Action=DescribeDBAccountPrivileges&Version=2018-06-14&InstanceName=chjl-tes-02vpc&<公共请求参数>

返回示例

{
    "RequestId": "abc",
    "DatabaseAccounts": [
        {
            "AccountName": "cccddd2",
            "DatabaseName": "cccddd3",
            "Privilege": "write",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd2",
            "DatabaseName": "cccddd2",
            "Privilege": "write",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd1",
            "DatabaseName": "cccddd2",
            "Privilege": "read",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd1",
            "DatabaseName": "cccddd3",
            "Privilege": "read",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd6",
            "DatabaseName": "",
            "Privilege": "",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd4",
            "DatabaseName": "",
            "Privilege": "",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd5",
            "DatabaseName": "",
            "Privilege": "",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd2",
            "DatabaseName": "",
            "Privilege": "",
            "IpList": "%"
        },
        {
            "AccountName": "cccddd1",
            "DatabaseName": "",
            "Privilege": "",
            "IpList": "%"
        }
    ]
}