Lista todas as swimlanes.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
sae:ListAllSwimmingLanes |
list |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /pop/v1/cas/gray/listSwimmingLanes HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| NamespaceId |
string |
Não |
O ID do namespace. |
cn-beijing:test |
| GroupId |
integer |
Não |
O ID do grupo de swimlanes. |
2074 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
A resposta. |
||
| RequestId |
string |
O ID da solicitação. |
B4D805CA-926D-41B1-8E63-7AD0C1ED**** |
| Message |
string |
A mensagem de resposta. Valores válidos:
|
success |
| TraceId |
string |
O ID de rastreamento usado para consultar os detalhes de uma solicitação. |
0a98a02315955564772843261e**** |
| Data |
array<object> |
Os dados da resposta. |
|
|
array<object> |
Os detalhes das swimlanes. |
||
| LaneId |
integer |
O ID da swimlane. |
16401 |
| LaneName |
string |
O nome da swimlane. |
test |
| LaneTag |
string |
A tag da swimlane. |
g1 |
| CanaryModel |
integer |
O modelo canário para a liberação canário de ponta a ponta:
|
0 |
| Enable |
boolean |
Indica se a swimlane está ativada.
|
true |
| EnableRules |
boolean |
Indica se as regras de tráfego estão ativadas. |
true |
| Apps |
array<object> |
As aplicações associadas à swimlane. |
|
|
object |
Os detalhes da aplicação. |
||
| 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 |
A regra de entrada da aplicação. |
|
| 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 |
A rota do gateway MSE. |
|
| 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 |
O código de erro.
|
|
| Code |
string |
O código de status HTTP retornado. Valores válidos:
|
200 |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.