调用getMseList接口获取注册中心列表
接口URL:/v1/env/getMseList
Content-Type:text/plain
请求方式:get
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
resPoolId | String | String | 是 | 资源池ID,数据来源于资源池列表里的资源池code(resPoolCode) |
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
无请求参数KEY/VALUE类型 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | Integer | Integer | 响应编码 2000 success |
message | String | String | 消息内容 |
returnObj | Object | Object | 返回数据 |
error | String | String | 调用错误时返回的错误编码 |
表returnObj
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
instId | String | String | 资源实例ID |
namespaceList | Array | Array | 集群下命名空间列表 |
orderTime | String | String | 订购时间 |
resourceName | String | String | 资源名称 |
spec | String | String | 规格 |
spuName | String | String | 产品名称 |
statusCd | String | String | 状态 |
subCategory | String | String | 资源小类(dcos,msercm) |
返回示例:成功
{"statusCode":2000,"message":"成功","returnObj":[{"instId":"642d0ecae8600dad204301d33784ff05","resourceName":"mse-an35j1","spuName":"注册中心","spec":"高可用版","orderTime":"2022-11-08T02:04:30.000+00:00","statusCd":"1","subCategory":"msercm","namespaceList":null},{"instId":"346da35ce2f002be5ff13a117d00f784","resourceName":"mse-bkxueb","spuName":"注册中心","spec":"基础版","orderTime":"2022-10-24T11:00:26.000+00:00","statusCd":"1","subCategory":"msercm","namespaceList":null}]}
返回示例:失败
{"statusCode":195442,"error":"MSAP_5442","message":"远程调用失败:系统[CCSE]-接口[获取基础资源信息]调用失败"}