查詢泳道詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
sae:DescribeSwimmingLane |
get |
*全部資源
|
無 | 無 |
請求文法
GET /pop/v1/cas/gray/describeSwimmingLane HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| NamespaceId |
string |
否 |
命名空間 ID。 |
cn-beijing:test |
| GroupId |
integer |
否 |
泳道組 ID。 |
2074 |
| LaneId |
integer |
否 |
泳道 ID。 |
9637 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資訊。 |
||
| RequestId |
string |
請求 ID。 |
30375C38-F4ED-4135-A0AE-5C75DC7F**** |
| Message |
string |
調用結果的附加資訊。取值說明如下:
|
success |
| TraceId |
string |
調用鏈 ID,用於精確查詢調用資訊。 |
0a98a02315955564772843261e**** |
| Data |
object |
返回結果。 |
|
| LaneId |
integer |
泳道 ID。 |
9488 |
| LaneName |
string |
泳道組名稱。 |
mse-test |
| LaneTag |
string |
泳道標籤。 |
{"alicloud.service.tag":"g1"} |
| Enable |
boolean |
泳道狀態:
|
true |
| EnableRules |
boolean |
是否開啟了流量規則。 |
true |
| CanaryModel |
integer |
全鏈路灰階模式:
|
0 |
| Apps |
array<object> |
應用資訊。 |
|
|
object |
應用資訊。 |
||
| AppId |
string |
應用 ID。 |
6b4c0f64-f679-4580-8105-91eac4****** |
| AppName |
string |
應用程式名稱。 |
test |
| MseAppId |
string |
MSE 執行個體 ID。 |
mse-cn-53y49****** |
| MseAppName |
string |
MSE 執行個體名稱。 |
sae-test |
| mseNamespaceId |
string |
MSE 命名空間 ID。 |
6733e538-d52f-48e6-91a4-192f91****** |
| AppEntryRule |
object |
應用入口規則。 |
|
| Paths |
array |
請求路徑。 |
|
|
string |
URL 路徑。 |
/Path |
|
| Percentage |
integer |
流量比例,按比例路由使用,取值 0-100。 |
50 |
| ConditionJoiner |
string |
條件之間的邏輯串連符:
|
AND |
| Conditions |
array<object> |
匹配條件。 |
|
|
object |
條件項。 |
||
| Type |
string |
參數類型。 |
Header |
| Name |
string |
參數名稱。 |
t |
| Condition |
string |
匹配規則。 |
== |
| Value |
string |
條件的匹配值。 |
g1 |
| Values |
array |
條件的匹配值。 |
|
|
string |
條件的匹配值。 |
g1 |
|
| IndependentPercentageEnable |
boolean |
是否啟用按比例灰階。 |
true |
| PercentageByPath |
object |
流量匹配。 |
|
|
integer |
流量比例。 |
100 |
|
| MseGatewayEntryRule |
object |
MSE 網關路由。 |
|
| RouteIds |
array |
路由 ID 列表。 |
|
|
integer |
路由 ID。 |
["1001","1002"] |
|
| Routes |
array<object> |
路由規則的詳細配置。 |
|
|
array<object> |
路由配置。 |
||
| RouteId |
integer |
路由 ID。 |
9504 |
| RouteName |
string |
路由名稱。 |
demo |
| RoutePredicate |
object |
路由規則。 |
|
| PathPredicate |
object |
路徑匹配規則。 |
|
| Path |
string |
路徑。 |
/Path |
| Type |
string |
匹配規則。 |
Header |
| Percentage |
integer |
路徑流量比例。 |
100 |
| Conditions |
array<object> |
匹配條件。 |
|
|
object |
條件項。 |
||
| Type |
string |
參數類型。 |
Header |
| Name |
string |
參數名稱。 |
t |
| Condition |
string |
匹配規則。 |
== |
| Value |
string |
條件的匹配值。 |
g1 |
| PercentageByRoute |
object |
流量配置。 |
|
|
integer |
配置流量比例,範圍為 1~100。 |
100 |
|
| IndependentPercentageEnable |
boolean |
是否啟用按比例灰階。 |
true |
| ConditionJoiner |
string |
條件之間的邏輯串連符。 |
AND |
| ErrorCode |
string |
錯誤碼。取值說明如下:
|
|
| Code |
string |
介面狀態或 POP 錯誤碼。取值說明如下:
|
200 |
| Success |
boolean |
是否成功。取值說明如下:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "30375C38-F4ED-4135-A0AE-5C75DC7F****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"LaneId": 9488,
"LaneName": "mse-test",
"LaneTag": "{\"alicloud.service.tag\":\"g1\"}",
"Enable": true,
"EnableRules": true,
"CanaryModel": 0,
"Apps": [
{
"AppId": "6b4c0f64-f679-4580-8105-91eac4******",
"AppName": "test",
"MseAppId": "mse-cn-53y49******",
"MseAppName": "sae-test",
"mseNamespaceId": "6733e538-d52f-48e6-91a4-192f91******"
}
],
"AppEntryRule": {
"Paths": [
"/Path"
],
"Percentage": 50,
"ConditionJoiner": "AND",
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1",
"Values": [
"g1"
]
}
],
"IndependentPercentageEnable": true,
"PercentageByPath": {
"key": 100
}
},
"MseGatewayEntryRule": {
"RouteIds": [
0
],
"Routes": [
{
"RouteId": 9504,
"RouteName": "demo\n",
"RoutePredicate": {
"PathPredicate": {
"Path": "/Path",
"Type": "Header"
}
}
}
],
"Percentage": 100,
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1"
}
],
"PercentageByRoute": {
"key": 100
},
"IndependentPercentageEnable": true,
"ConditionJoiner": "AND"
}
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的參數:%s不可為空。 |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的參數{%s}。 |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的參數{%s}:%s。 |
| 400 | MseGatewayRule.CreateFailed | Create MSE Gateway rule failed. | 建立MSE微服務網關路由失敗。 |
| 400 | InternalApiError | An exception occurred when calling mse:%s, error message: %s. | 調用 mse:%s 介面異常,%s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。