查询泳道可选的网关路由
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sae:ListSwimmingLaneGatewayRoutes |
list |
*全部资源
|
无 | 无 |
请求语法
GET /pop/v1/cas/gray/listSwimmingLaneGatewayRoutes HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| NamespaceId |
string |
否 |
命名空间 ID。 |
cn-beijing:test |
| GatewayUniqueId |
string |
否 |
网关唯一标识 ID。 |
gw-277c0727535f4aae917e48de0f****** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回信息。 |
||
| RequestId |
string |
请求 ID。 |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
附加信息。取值说明如下:
|
success |
| TraceId |
string |
调用链 ID,用于精确查询调用信息。 |
ac1a0b2215622246421415014e**** |
| Data |
array<object> |
返回结果。 |
|
|
array<object> |
详细信息。 |
||
| RouteId |
integer |
路由 ID。 |
16933 |
| RouteName |
string |
路由名称。 |
test-route |
| RoutePredicate |
object |
路由规则。 |
|
| PathPredicate |
object |
路径匹配规则。 |
|
| Path |
string |
路由路径。 |
/Path |
| Type |
string |
规则类型。 |
Header |
| ErrorCode |
string |
错误码。取值说明如下:
|
|
| Code |
string |
HTTP 状态码。取值说明如下:
|
200 |
| Success |
boolean |
是否成功。取值说明如下:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "ac1a0b2215622246421415014e****",
"Data": [
{
"RouteId": 16933,
"RouteName": "test-route",
"RoutePredicate": {
"PathPredicate": {
"Path": "/Path",
"Type": "Header\n"
}
}
}
],
"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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。