查找指定云数据库 Tair(兼容 Redis)实例列表中某个账号的信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
kvstore:DescribeAccounts |
get |
*DBInstance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
r-bp1zxszhcgatnx**** |
| AccountName |
string |
否 |
待查询的账号名。 |
demoaccount |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
6C9E114C-217C-4118-83C0-B4070222**** |
| Accounts |
object |
||
| Account |
array<object> |
实例的账号信息列表。 |
|
|
array<object> |
账号信息详情。 |
||
| AccountDescription |
string |
账号备注信息。 |
testdec |
| InstanceId |
string |
实例 ID。 |
r-bp10noxlhcoim2**** |
| AccountType |
string |
账号类型,返回值:
|
Normal |
| AccountStatus |
string |
账号状态,返回值:
|
Available |
| AccountName |
string |
账号名称。 |
demoaccount |
| DatabasePrivileges |
object |
||
| DatabasePrivilege |
array<object> |
账号权限列表。 |
|
|
object |
账号拥有的权限详情。 |
||
| AccountPrivilege |
string |
账号权限,返回值:
|
RoleReadWrite |
示例
正常返回示例
JSON格式
{
"RequestId": "6C9E114C-217C-4118-83C0-B4070222****",
"Accounts": {
"Account": [
{
"AccountDescription": "testdec",
"InstanceId": "r-bp10noxlhcoim2****",
"AccountType": "Normal",
"AccountStatus": "Available",
"AccountName": "demoaccount",
"DatabasePrivileges": {
"DatabasePrivilege": [
{
"AccountPrivilege": "RoleReadWrite"
}
]
}
}
]
}
}
异常返回示例
JSON格式
{
"Accounts":{
"Account":[
{
"DatabasePrivileges":{
"DatabasePrivilege":[
{
"AccountPrivilege":"RoleReadWrite"
}
]
},
"AccountStatus":"Available",
"InstanceId":"r-xxxxxxxxxxxxxxx",
"AccountName":"r-xxxxxxxxxxxxxxx",
"PrivExceeded":"0",
"AccountType":"Normal"
}
]
},
"RequestId":"6C9E114C-217C-4118-83C0-B40702221161"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。