功能介绍:查询redis节点名列表,注:只返回主节点名列表
GET https://[endpoint].ctapi.ctyun.cn/v1/instanceManageMgrServant/getRedisNodeList
Content-Type:application/ form-data
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
prodInstId | 873894303586321408 | String | 是 | 实例ID |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
code | core.ok | String | 响应码描述 |
returnObj | Object | 响应对象 | |
returnObj.total | 4 | int | 数量 |
returnObj.rows | List<String> | ||
returnObj.rows.nodeName | redisSet_865194359228728320_20452 | String | redis节点名 |
message | success | String | 响应信息 |
statusCode | 800 | int | 响应状态码 |
请求示例:
GET https://dcs2-global.ctapi.ctyun.cn/v1/instanceManageMgrServant/getRedisNodeList?prodInstId=873894303586321408
返回示例:
{ "code": "core.ok", "returnObj": { "total": 4, "rows": [ { "nodeName": "redisSet_873894303586321408_25436" }, { "nodeName": "redisSet_873894303586321408_25420" }, { "nodeName": "redisSet_873894303586321408_25404" }, { "nodeName": "redisSet_873894303586321408_25388" } ] }, "message": "success", "statusCode": 800 } |
返回示例:
{ "code": "core.ok", "message": "Unsupported request. can't find apiServerInfo", "statusCode": 900 } |