Lists all swimlanes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListAllSwimmingLanes |
list |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/cas/gray/listSwimmingLanes HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
No |
The namespace ID. |
cn-beijing:test |
| GroupId |
integer |
No |
The swimming lane group ID. |
2074 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
B4D805CA-926D-41B1-8E63-7AD0C1ED**** |
| Message |
string |
The response message. Valid values:
|
success |
| TraceId |
string |
The trace ID used to query the details of a request. |
0a98a02315955564772843261e**** |
| Data |
array<object> |
The response data. |
|
|
array<object> |
The details of the swimming lanes. |
||
| LaneId |
integer |
The swimming lane ID. |
16401 |
| LaneName |
string |
The swimming lane name. |
test |
| LaneTag |
string |
The swimming lane tag. |
g1 |
| CanaryModel |
integer |
The canary model for the end-to-end canary release:
|
0 |
| Enable |
boolean |
Indicates whether the swimming lane is enabled.
|
true |
| EnableRules |
boolean |
Indicates whether traffic rules are enabled. |
true |
| Apps |
array<object> |
The applications associated with the swimming lane. |
|
|
object |
The application details. |
||
| AppId |
string |
The application ID. |
8ea0c468-8165-416d-beae-531abb****** |
| AppName |
string |
The application name. |
test |
| MseAppId |
string |
The MSE instance ID. |
mse-cn-53y49****** |
| MseAppName |
string |
The MSE instance name. |
sae-test |
| MseNamespaceId |
string |
The ID of the namespace in which the MSE instance resides. |
sae-ent |
| AppEntryRule |
object |
The application entry rule. |
|
| Paths |
array |
The request paths. |
|
|
string |
A request path. |
/ |
|
| Percentage |
integer |
The percentage of traffic (0-100) to be routed when the route by percentage model is used. |
50 |
| ConditionJoiner |
string |
The logical operator used to join conditions:
|
AND |
| Conditions |
array<object> |
The matching conditions. |
|
|
object |
A matching condition. |
||
| Type |
string |
The parameter type. |
Header |
| Name |
string |
The parameter name. |
t |
| Condition |
string |
The matching rule. |
== |
| Value |
string |
The value to match in the condition. |
g1 |
| Values |
array |
The values to match in the condition. |
|
|
string |
A value to match in the condition. |
g1 |
|
| IndependentPercentageEnable |
boolean |
Indicates whether to enable canary release by percentage. |
true |
| PercentageByPath |
object |
A map of paths to their corresponding traffic percentages. |
|
|
integer |
The traffic percentage. |
100 |
|
| MseGatewayEntryRule |
object |
The MSE gateway route. |
|
| RouteIds |
array |
The route IDs. |
|
|
integer |
A route ID. |
103092 |
|
| Routes |
array<object> |
The route configurations. |
|
|
array<object> |
The route configuration. |
||
| RouteId |
integer |
The route ID. |
9504 |
| RouteName |
string |
The route name. |
demo |
| RoutePredicate |
object |
The route's matching rule. |
|
| PathPredicate |
object |
The path matching rule. |
|
| path |
string |
The path. |
/Path |
| type |
string |
The matching rule. |
Header |
| Percentage |
integer |
The percentage of traffic for the path. |
100 |
| ConditionJoiner |
string |
The logical operator used to join conditions. |
AND |
| Conditions |
array<object> |
The matching conditions. |
|
|
object |
A condition item. |
||
| Type |
string |
The parameter type. |
Header |
| Name |
string |
The parameter name. |
t |
| Condition |
string |
The matching rule. |
== |
| Value |
string |
The value to match in the condition. |
g1 |
| IndependentPercentageEnable |
boolean |
Indicates whether to enable canary release by percentage. |
true |
| PercentageByRoute |
object |
A map of route IDs to their corresponding traffic percentages. |
|
|
integer |
The traffic percentage. Valid values: 1 to 100. |
"2":1 |
|
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code returned. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"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
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | |
| 400 | MseGatewayRule.CreateFailed | Create MSE Gateway rule failed. | Failed to create an MSE microservices gateway route. |
| 400 | InternalApiError | An exception occurred when calling mse:%s, error message: %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.