调用GetSwimLaneList获取某个泳道组下所有泳道列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
servicemesh:GetSwimLaneList |
get |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ServiceMeshId |
string |
是 |
服务网格 ID。 |
xxx |
GroupName |
string |
否 |
泳道组名称。 |
test |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
RequestId |
string |
请求 ID。 |
yyyy |
SwimLaneList |
array<object> |
泳道列表。 |
|
object |
泳道信息。 |
||
Name |
string |
泳道名称。 |
s1 |
GroupName |
string |
泳道组名称。 |
test |
LabelSelectorKey |
string |
关联的服务工作负载的 Label Key,固定使用 |
ASM_TRAFFIC_TAG |
LabelSelectorValue |
string |
|
v1 |
IngressService |
string |
已废弃。 |
mocka.default.svc.cluster.local |
IngressRule |
string |
引流规则。 |
[{"Domains":["*"],"RouteName":"r1","MatchRequest":{"Headers":[{"Name":"x-asm-prefer-tag","MatchingMode":"exact","MatchingContent":"s1"}],"URI":{"MatchingMode":"exact","MatchingContent":"/mock"}},"RouteDestinations":[{"Destination":{"Host":"mocka.default.svc.cluster.local","Subset":"s1"}}]},{"Domains":["*"],"RouteName":"hello","MatchRequest":{"Headers":[{"Name":"x-asm-prefer-tag","MatchingMode":"exact","MatchingContent":"s1"}],"URI":{"MatchingMode":"exact","MatchingContent":"/mocktest"}},"RouteDestinations":[{"Destination":{"Host":"mocka.default.svc.cluster.local","Subset":"s1"}}]}] |
ServiceList |
string |
关联的服务列表。 |
["sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mocka","sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mockb","sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mockc"] |
WeightedIngressDestinatin |
string |
当泳道对应的泳道组的引流策略为 weighted 时可以设定。此字段是一个 JSON 序列化的字符串,指定了在基于权重的路由策略下,每条泳道的入口服务域名以及对应的引流权重。 |
{"RouteDestination":{"Host":"mocka.default.svc.cluster.local","Subset":"s1"},"Weight":40} |
ValidationMessage |
string |
泳道校验验信息列表。当出现泳道组内服务不存在等问题时,泳道组校验信息列表将会显示相应的校验信息。如果配置成功并且生效会返回 null。 |
[{"code":"CODE_UNEFFECTED_SWIMLANE_LABEL","level":"warning","message":"The label selector defined in the ASMSwimLane has no effect on any workload instance."}] |
示例
正常返回示例
JSON
格式
{
"RequestId": "yyyy",
"SwimLaneList": [
{
"Name": "s1",
"GroupName": "test",
"LabelSelectorKey": "ASM_TRAFFIC_TAG",
"LabelSelectorValue": "v1",
"IngressService": "mocka.default.svc.cluster.local",
"IngressRule": "[{\"Domains\":[\"*\"],\"RouteName\":\"r1\",\"MatchRequest\":{\"Headers\":[{\"Name\":\"x-asm-prefer-tag\",\"MatchingMode\":\"exact\",\"MatchingContent\":\"s1\"}],\"URI\":{\"MatchingMode\":\"exact\",\"MatchingContent\":\"/mock\"}},\"RouteDestinations\":[{\"Destination\":{\"Host\":\"mocka.default.svc.cluster.local\",\"Subset\":\"s1\"}}]},{\"Domains\":[\"*\"],\"RouteName\":\"hello\",\"MatchRequest\":{\"Headers\":[{\"Name\":\"x-asm-prefer-tag\",\"MatchingMode\":\"exact\",\"MatchingContent\":\"s1\"}],\"URI\":{\"MatchingMode\":\"exact\",\"MatchingContent\":\"/mocktest\"}},\"RouteDestinations\":[{\"Destination\":{\"Host\":\"mocka.default.svc.cluster.local\",\"Subset\":\"s1\"}}]}]",
"ServiceList": "[\"sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mocka\",\"sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mockb\",\"sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mockc\"]",
"WeightedIngressDestinatin": "{\"RouteDestination\":{\"Host\":\"mocka.default.svc.cluster.local\",\"Subset\":\"s1\"},\"Weight\":40}",
"ValidationMessage": "[{\"code\":\"CODE_UNEFFECTED_SWIMLANE_LABEL\",\"level\":\"warning\",\"message\":\"The label selector defined in the ASMSwimLane has no effect on any workload instance.\"}]"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。