查询所在泳道组的所有泳道
更新时间 2025-09-12 10:44:19
最近更新时间: 2025-09-12 10:44:19
接口功能介绍
调用querySwimmings接口查询所在泳道组的所有泳道
接口约束
无
URI
GET /msgc/v1/swimming/swimmingList
路径参数 无
Query参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| groupId | 是 | Integer | 泳道ID | 1 |
请求参数
请求头header参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| regionId | 是 | String | 资源池ID | bb9fdb42056f11eda161xxxxxxxxx | |
| msnamespace | 是 | String | 环境参数 | default |
请求体body参数 无
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| statusCode | Integer | 响应编码 2000 success | 2000 | |
| returnObj | Array of Objects | 返回体 | returnObj | |
| message | String | 消息内容 | success | |
| 表 returnObj |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| groupId | Integer | 泳道组id | 10 | |
| swimmingId | Integer | 泳道id | 99 | |
| swimmingName | String | 泳道名 | Test-swimming | |
| tag | String | 标签名 | gray | |
| path | String | 入口应用路由规则路径 | /test/path | |
| condition | String | 规则条件AND/OR | AND | |
| swimmingAppItems | Array of Objects | 当前泳道内存在的应用列表 | swimmingAppItems | |
| conditionItems | Array of Objects | 入口应用路由规则条件列表 | conditionItems | |
| enable | Integer | 规则开关状态 1规则打开 0规则关闭 | ||
| 表 swimmingAppItems |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| appId | String | 应用唯一id | 723df9e5e575bf9e91f4e1axxxxxx | |
| appName | String | 应用名 | demo-app | |
| appEnvInfoDTO | Object | 环境信息 | appEnvInfoDTO | |
| 表 appEnvInfoDTO |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| projectCode | String | 项目编码 | default | |
| projectName | String | 项目名称 | 默认 | |
| groupCode | String | 分组编码 | default | |
| groupName | String | 分组名称 | 默认 | |
| envName | String | 环境名称 | 默认 | |
| appId | String | 应用唯一Id | 723df9e5e575bf9e91f4e1axxxxxx | |
| 表 conditionItems |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| type | String | 类型 cookie/header/param/body | cookie | |
| param | String | 参数名 | tag | |
| cond | String | 条件=、!=、>、<、>=、<=、in、%(百分比)、regexp(正则)、mod(模100) | = | |
| value | String | 参数值 | gray | |
| operator | String | cond为mod时,operator赋值=、!=、>、<、>=、<= | = | |
| expr | String | 使用Dubbo框架时,expr代表参数获取表达式 | .name | |
| index | Integer | 使用Dubbo框架时,index代表取得是第几个参数 | 0 |
枚举参数
无
请求示例
请求url
https://{endpoint}/msgc/v1/swimming/swimmingList?groupId=200030
请求头header
{
"regionId":"bb9fdb42056f11eda161xxxxxxxxx",
"msnamespace":"default"
}
请求体body
无
响应示例
{
"statusCode":2000,
"message":"success",
"returnObj":[
{
"groupId":134,
"swimmingId":127,
"swimmingName":"Test-swimming",
"tag":"gray",
"path":"/test/path",
"condition":"AND",
"swimmingAppItems":[
{
"appId":"723df9e5e575bf9e91f4e1axxxxxx",
"appName":"demo-app",
"appEnvInfoDTO": {
"projectCode": "default",
"projectName": "默认",
"groupCode": "default",
"groupName": "默认",
"envName": "默认",
"appId": "723df9e5e575bf9e91f4e1axxxxxx"
}
}
],
"conditionItems":[
{
"index":0,
"expr":null,
"type":"cookie",
"param":"213",
"cond":"=",
"value":"123",
"operator":null
}
],
"enable":1
}
]
}
状态码
请参考 状态码
错误码
请参考 错误码