查询所有泳道。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sae:ListAllSwimmingLanes |
list |
*全部资源
|
无 | 无 |
请求语法
GET /pop/v1/cas/gray/listSwimmingLanes HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| NamespaceId |
string |
否 |
命名空间 ID。 |
cn-beijing:test |
| GroupId |
integer |
否 |
泳道组 ID。 |
2074 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回信息。 |
||
| RequestId |
string |
请求 ID。 |
B4D805CA-926D-41B1-8E63-7AD0C1ED**** |
| Message |
string |
附加信息。取值说明如下:
|
success |
| TraceId |
string |
调用链 ID,用于精确查询调用信息。 |
0a98a02315955564772843261e**** |
| Data |
array<object> |
返回结果。 |
|
|
array<object> |
详细信息。 |
||
| LaneId |
integer |
泳道 ID。 |
16401 |
| LaneName |
string |
泳道组名称。 |
test |
| LaneTag |
string |
泳道标签。 |
g1 |
| CanaryModel |
integer |
全链路灰度模式:
|
0 |
| Enable |
boolean |
泳道状态:
|
true |
| EnableRules |
boolean |
是否开启了流量规则。 |
true |
| Apps |
array<object> |
关联的应用。 |
|
|
object |
应用详情。 |
||
| AppId |
string |
应用 ID。 |
8ea0c468-8165-416d-beae-531abb****** |
| AppName |
string |
应用名称。 |
test |
| MseAppId |
string |
MSE 实例 ID。 |
mse-cn-53y49****** |
| MseAppName |
string |
MSE 实例名称。 |
sae-test |
| MseNamespaceId |
string |
MSE 实例所在命名空间的 ID。 |
sae-ent |
| AppEntryRule |
object |
应用入口规则。 |
|
| Paths |
array |
请求路径。 |
|
|
string |
请求路径。 |
/ |
|
| Percentage |
integer |
流量比例,按比例路由使用,取值 0-100。 |
50 |
| ConditionJoiner |
string |
条件之间的逻辑连接符:
|
AND |
| Conditions |
array<object> |
匹配条件。 |
|
|
object |
条件项。 |
||
| Type |
string |
参数类型。 |
Header |
| Name |
string |
参数名称。 |
t |
| Condition |
string |
匹配规则。 |
== |
| Value |
string |
条件的匹配值。 |
g1 |
| Values |
array |
条件的匹配值。 |
|
|
string |
条件的匹配值。 |
g1 |
|
| IndependentPercentageEnable |
boolean |
是否启用按比例灰度。 |
true |
| PercentageByPath |
object |
流量匹配。 |
|
|
integer |
流量比例。 |
100 |
|
| MseGatewayEntryRule |
object |
MSE 网关路由。 |
|
| RouteIds |
array |
路由 ID 列表。 |
|
|
integer |
路由 ID。 |
103092 |
|
| Routes |
array<object> |
路由规则的详细配置。 |
|
|
array<object> |
路由配置。 |
||
| RouteId |
integer |
路由 ID。 |
9504 |
| RouteName |
string |
路由名称。 |
demo |
| RoutePredicate |
object |
路由规则。 |
|
| PathPredicate |
object |
路径匹配规则。 |
|
| path |
string |
路径。 |
/Path |
| type |
string |
匹配规则。 |
Header |
| Percentage |
integer |
路径流量比例。 |
100 |
| ConditionJoiner |
string |
条件之间的逻辑连接符。 |
AND |
| Conditions |
array<object> |
匹配条件。 |
|
|
object |
条件项。 |
||
| Type |
string |
参数类型。 |
Header |
| Name |
string |
参数名称。 |
t |
| Condition |
string |
匹配规则。 |
== |
| Value |
string |
条件的匹配值。 |
g1 |
| IndependentPercentageEnable |
boolean |
是否启用按比例灰度。 |
true |
| PercentageByRoute |
object |
流量配置。 |
|
|
integer |
配置流量比例,范围为 1~100。 |
"2":1 |
|
| ErrorCode |
string |
错误码。取值说明如下:
|
|
| Code |
string |
接口状态或 POP 错误码。取值说明如下:
|
200 |
| Success |
boolean |
是否成功。取值说明如下:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "B4D805CA-926D-41B1-8E63-7AD0C1ED****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": [
{
"LaneId": 16401,
"LaneName": "test",
"LaneTag": "g1\n",
"CanaryModel": 0,
"Enable": true,
"EnableRules": true,
"Apps": [
{
"AppId": "8ea0c468-8165-416d-beae-531abb******",
"AppName": "test",
"MseAppId": "mse-cn-53y49******",
"MseAppName": "sae-test",
"MseNamespaceId": "sae-ent\n"
}
],
"AppEntryRule": {
"Paths": [
"/"
],
"Percentage": 50,
"ConditionJoiner": "AND",
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1",
"Values": [
"g1"
]
}
],
"IndependentPercentageEnable": true,
"PercentageByPath": {
"key": 100
}
},
"MseGatewayEntryRule": {
"RouteIds": [
103092
],
"Routes": [
{
"RouteId": 9504,
"RouteName": "demo\n",
"RoutePredicate": {
"PathPredicate": {
"path": "/Path\n",
"type": "Header\n"
}
}
}
],
"Percentage": 100,
"ConditionJoiner": "AND",
"Conditions": [
{
"Type": "Header\n",
"Name": "t\n",
"Condition": "==\n",
"Value": "g1\n"
}
],
"IndependentPercentageEnable": true,
"PercentageByRoute": {
"key": 0
}
}
}
],
"ErrorCode": "",
"Code": "200",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的参数:%s不能为空。 |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的参数{%s}。 |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的参数{%s}:%s。 |
| 400 | MseGatewayRule.CreateFailed | Create MSE Gateway rule failed. | 创建MSE微服务网关路由失败。 |
| 400 | InternalApiError | An exception occurred when calling mse:%s, error message: %s. | 调用 mse:%s 接口异常,%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。