获取所有泳道信息
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:QueryAllSwimmingLane |
get |
*GovernanceNamespace
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Namespace |
string |
否 |
MSE 命名空间名字 |
default |
| GroupId |
integer |
是 |
泳道组 ID |
186 |
| AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
RestResult |
||
| RequestId |
string |
请求 ID。 |
DC34E4A3-5F1C-4E40-86EA-02EDF967**** |
| Success |
boolean |
请求结果,取值如下:
|
true |
| ErrorCode |
string |
错误码。 |
Success |
| Message |
string |
返回信息。 |
OK |
| Data |
array<object> |
数据概览。 |
[{id:100,name:"test"}] |
|
object |
|||
| Name |
string |
泳道组名称。 |
swimmingGroup |
| UserId |
string |
泳道所属的用户 id。 |
12345 |
| MessageQueueFilterSide |
string |
在哪一侧实现消息灰度。 |
Client |
| Enable |
string |
是否开启。 |
true |
| Namespace |
string |
泳道所属的 MSE 命名空间。 |
default |
| RecordCanaryDetail |
boolean |
是否记录请求详情(全链路灰度可观测)。 |
false |
| Id |
integer |
泳道 Id。 |
123 |
| RegionId |
string |
所属地域。 |
cn-hangzhou |
| MessageQueueGrayEnable |
boolean |
是否开启消息灰度。 |
false |
| enableRules |
boolean |
是否开启规则。 |
true |
| EntryRules |
array<object> |
入口应用规则列表 |
|
|
object |
入口应用规则 |
||
| paths |
array |
路径列表 |
|
|
string |
路径 |
/ |
|
| path |
string |
路径 |
/adump/wxb/prod |
| condition |
string |
条件 |
AND |
| restItems |
array<object> |
Rest 匹配规则列表 |
|
|
object |
Rest 匹配规则 |
||
| type |
string |
匹配类型 |
cookie |
| name |
string |
名称 |
test |
| operator |
string |
操作符 |
rawvalue |
| nameList |
array |
匹配列表 |
|
|
string |
匹配名称 |
test |
|
| datum |
string |
数值 |
x |
| cond |
string |
匹配符 |
== |
| divisor |
integer |
除数 |
10 |
| remainder |
integer |
余数 |
10 |
| rate |
integer |
百分比 |
30 |
| value |
string |
值 |
test |
| gmtCreate |
string |
泳道创建时间。 |
1683598484000 |
| gmtModified |
string |
泳道更新时间。 |
1683598484000 |
| groupId |
string |
泳道组 Id。 |
72709 |
| GroupId |
string |
泳道组 Id。 |
6859 |
| tag |
string |
泳道对应的标签。 |
gray |
| Tag |
string |
泳道对应的标签。 |
gray |
| GatewaySwimmingLaneRoute |
object |
网关路由信息(使用云原生网关/APIG 网关为入口时使用) |
|
| GatewayId |
integer |
网关 ID |
1 |
| GatewayUniqueId |
string |
网关唯一 ID |
gw-84efde2ee1464260bdb17a5b**** |
| RouteIdList |
array |
路由 ID 列表,网关级别生效可不填 |
|
|
integer |
路由 ID |
1 |
|
| CanaryModel |
integer |
全链路灰度模式:
|
0 |
| Conditions |
array<object> |
匹配条件列表(按内容路由使用) |
|
|
object |
匹配条件 |
||
| Name |
string |
参数名称 |
name |
| Value |
string |
参数值 |
xiaoming |
| Type |
string |
参数类型:
|
header |
| Cond |
string |
条件:
|
PRE |
| NameList |
array |
NameList |
|
|
string |
Name |
name |
|
| Percentage |
integer |
流量比例(按比例路由使用,取值 0-100) |
20 |
| RouteIndependentPercentageEnable |
string |
是否独立设置每条路径的百分比 |
true |
| RouteIndependentPercentageList |
array<object> |
路由与百分比列表 |
|
|
object |
|||
| RouteId |
string |
路由 id |
12345 |
| Percentage |
string |
百分比 |
60 |
| Condition |
string |
灰度条件 |
AND、OR |
| PathIndependentPercentageEnable |
boolean |
是否设置每条路径的百分比 |
true |
| GatewaySwimmingLaneRouteJson |
string |
网关相关信息(MSE 云原生网关/云原生 API 网关作为入口时使用) |
{\"GatewayUniqueId\":\"gw-cf815503e0a8441b8956d8e349fa8fb5\",\"Percentage\":0,\"RouteIdList\":[32295,32298,32297,32309,32307,32294,32303,32292,32299,35278],\"CanaryModel\":1,\"Conditions\":[]} |
示例
正常返回示例
JSON格式
{
"RequestId": "DC34E4A3-5F1C-4E40-86EA-02EDF967****",
"Success": true,
"ErrorCode": "Success",
"Message": "OK",
"Data": [
{
"Name": "swimmingGroup",
"UserId": "12345",
"MessageQueueFilterSide": "Client",
"Enable": "true",
"Namespace": "default",
"RecordCanaryDetail": false,
"Id": 123,
"RegionId": "cn-hangzhou",
"MessageQueueGrayEnable": false,
"enableRules": true,
"EntryRules": [
{
"paths": [
"/"
],
"path": "/adump/wxb/prod",
"condition": "AND",
"restItems": [
{
"type": "cookie",
"name": "test",
"operator": "rawvalue",
"nameList": [
"test"
],
"datum": "x",
"cond": "==",
"divisor": 10,
"remainder": 10,
"rate": 30,
"value": "test"
}
]
}
],
"gmtCreate": "1683598484000",
"gmtModified": "1683598484000",
"groupId": "72709",
"GroupId": "6859",
"tag": "gray",
"Tag": "gray",
"GatewaySwimmingLaneRoute": {
"GatewayId": 1,
"GatewayUniqueId": "gw-84efde2ee1464260bdb17a5b****",
"RouteIdList": [
1
],
"CanaryModel": 0,
"Conditions": [
{
"Name": "name",
"Value": "xiaoming",
"Type": "header",
"Cond": "PRE",
"NameList": [
"name"
]
}
],
"Percentage": 20,
"RouteIndependentPercentageEnable": "true",
"RouteIndependentPercentageList": [
{
"RouteId": "12345",
"Percentage": "60"
}
],
"Condition": "AND、OR"
},
"PathIndependentPercentageEnable": true,
"GatewaySwimmingLaneRouteJson": "{\\\"GatewayUniqueId\\\":\\\"gw-cf815503e0a8441b8956d8e349fa8fb5\\\",\\\"Percentage\\\":0,\\\"RouteIdList\\\":[32295,32298,32297,32309,32307,32294,32303,32292,32299,35278],\\\"CanaryModel\\\":1,\\\"Conditions\\\":[]}"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。