調用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.\"}]"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。