All Products
Search
Document Center

Alibaba Cloud Service Mesh:GetSwimLaneList

Last Updated:Oct 24, 2023

Queries a list of all the lanes in a lane group.

debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ID of the Service Mesh (ASM) instance.

xxx
GroupNamestringNo

The name of the lane group.

test

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

yyyy
SwimLaneListobject []

A list of all the lanes in the lane group.

Namestring

The name of a lane.

s1
GroupNamestring

The name of the lane group.

test
LabelSelectorKeystring

The label key of the associated service workload. The value is fixed as ASM_TRAFFIC_TAG.

ASM_TRAFFIC_TAG
LabelSelectorValuestring

The label value of the associated service workload.``

v1
IngressServicestring

This parameter is deprecated.

mocka.default.svc.cluster.local
IngressRulestring

The traffic routing rule associated with the lane.

[{"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"}}]}]
ServiceListstring

A list of services associated with the lane.

["sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mocka","sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mockb","sh01/c089443ea9e50403fa4f0a6237d11e0a9/default/mockc"]

Examples

Sample success responses

JSONformat

{
  "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\"]"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-09-28Add Operationsee changesets