Mendaftar semua swimlane.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListAllSwimmingLanes |
list |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/cas/gray/listSwimmingLanes HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
No |
ID namespace. |
cn-beijing:test |
| GroupId |
integer |
No |
ID kelompok swimlane. |
2074 |
Elemen respons
|
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 ID of the application. |
8ea0c468-8165-416d-beae-531abb****** |
| AppName |
string |
The name of the application. |
test |
| MseAppId |
string |
The ID of the MSE instance. |
mse-cn-53y49****** |
| MseAppName |
string |
The name of the MSE instance. |
sae-test |
| MseNamespaceId |
string |
The ID of the namespace to which the MSE instance belongs. |
sae-ent |
| AppEntryRule |
object |
The application entry rule. |
|
| Paths |
array |
The request path. |
|
|
string |
The request paths. |
/ |
|
| Percentage |
integer |
The traffic ratio. Valid values: 0 to 100. |
50 |
| ConditionJoiner |
string |
Logical connectors between conditions:
|
AND |
| Conditions |
array<object> |
The matching condition. |
|
|
object |
Item |
||
| Type |
string |
The type of the parameter. |
Header |
| Name |
string |
The parameter name. |
t |
| Condition |
string |
The matching rule. |
== |
| Value |
string |
The match value. |
g1 |
| Values |
array |
The match value of the condition. |
|
|
string |
The match value of the condition. |
g1 |
|
| IndependentPercentageEnable |
boolean |
Whether to enable proportional grayscale. |
true |
| PercentageByPath |
object |
Traffic matching. |
|
|
integer |
The traffic ratio. |
100 |
|
| MseGatewayEntryRule |
object |
The MSE gateway route. |
|
| RouteIds |
array |
The IDs of the route tables. |
|
|
integer |
The route ID. |
103092 |
|
| Routes |
array<object> |
The detailed configuration of the routing rule. |
|
|
array<object> |
The route configurations. |
||
| RouteId |
integer |
The route ID. |
9504 |
| RouteName |
string |
The name of the route. |
demo |
| RoutePredicate |
object |
The routing rule. |
|
| PathPredicate |
object |
The path matching rule. |
|
| path |
string |
The path. |
/Path |
| type |
string |
The matching rule. |
Header |
| Percentage |
integer |
The proportion of path traffic. |
100 |
| ConditionJoiner |
string |
The logical connector between conditions. |
AND |
| Conditions |
array<object> |
The matching condition. |
|
|
object |
The condition item. |
||
| Type |
string |
The type of the parameter. |
Header |
| Name |
string |
The parameter name. |
t |
| Condition |
string |
The matching rule. |
== |
| Value |
string |
The match value of the condition. |
g1 |
| IndependentPercentageEnable |
boolean |
Whether to enable proportional grayscale. |
true |
| PercentageByRoute |
object |
The traffic configuration. |
|
|
integer |
Configure the traffic ratio. The range is 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 |
Contoh
Respons sukses
JSONformat
{
"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
}
Kode kesalahan
|
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. | |
| 400 | InternalApiError | An exception occurred when calling mse:%s, error message: %s. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.