功能介绍:查找指定Redis实例的帐户列表信息, 只有集群版适用
GET https://[endpoint].ctapi.ctyun.cn/v1/userMgr/describeAccounts
Content-Type:application/ form-data
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
prodInstId | 873780530431132672 | String | 是 | 实例ID |
返回参数说明:(200)成功
参数名 | 示例值 | 参数类型 | 参数描述 |
code | core.ok | String | 响应码描述 |
returnObj | Object | 响应对象 | |
returnObj.total | 4 | int | 数量 |
returnObj.rows | List<Account> | 账号集合,见Account | |
message | success | String | 响应信息 |
statusCode | 800 | int | 响应状态码 |
Account:
参数名 | 示例值 | 参数类型 | 参数描述 |
name | test_name | String | 账户名称 |
type | ro | String | 账户类型 |
accountDescription | 测试账户描述 | String | 账户描述信息 |
请求示例:
GET https://dcs2-global.ctapi.ctyun.cn/v1/userMgr/describeAccounts?prodInstId=873780530431132672
返回示例:
{ "code": "core.ok", "returnObj": { "total": 4, "rows": [ { "name": "test_name3", "type": "ro", "accountDescription": "null" } ] }, "message": "success", "statusCode": 800 } |