全部產品
Search
文件中心

Serverless App Engine:ListAllSwimmingLanes - 查詢所有泳道

更新時間:Apr 22, 2026

查詢所有泳道。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

sae:ListAllSwimmingLanes

list

*全部資源

*

請求文法

GET /pop/v1/cas/gray/listSwimmingLanes HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

NamespaceId

string

命名空間 ID。

cn-beijing:test

GroupId

integer

泳道組 ID。

2074

返回參數

名稱

類型

描述

樣本值

object

返回資訊。

RequestId

string

請求 ID。

B4D805CA-926D-41B1-8E63-7AD0C1ED****

Message

string

附加資訊。取值說明如下:

  • 請求正常,返回 success

  • 請求異常,返回具體異常錯誤碼。

success

TraceId

string

調用鏈 ID,用於精確查詢調用資訊。

0a98a02315955564772843261e****

Data

array<object>

返回結果。

array<object>

詳細資料。

LaneId

integer

泳道 ID。

16401

LaneName

string

泳道組名稱。

test

LaneTag

string

泳道標籤。

g1

CanaryModel

integer

全鏈路灰階模式:

  • 0: 按請求內容路由

  • 1: 按比例路由

0

Enable

boolean

泳道狀態:

  • true:開啟

  • false:關閉

true

EnableRules

boolean

是否開啟了流量規則。

true

Apps

array<object>

相關 App。

object

應用詳情。

AppId

string

應用 ID。

8ea0c468-8165-416d-beae-531abb******

AppName

string

應用程式名稱。

test

MseAppId

string

MSE 執行個體 ID。

mse-cn-53y49******

MseAppName

string

MSE 執行個體名稱。

sae-test

MseNamespaceId

string

MSE 執行個體所在命名空間的 ID。

sae-ent

AppEntryRule

object

應用入口規則。

Paths

array

請求路徑。

string

請求路徑。

/

Percentage

integer

流量比例,按比例路由使用,取值 0-100。

50

ConditionJoiner

string

條件之間的邏輯串連符:

  • AND:同時滿足所有條件

  • OR:滿足任意條件

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。

103092

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

ConditionJoiner

string

條件之間的邏輯串連符。

AND

Conditions

array<object>

匹配條件。

object

條件項。

Type

string

參數類型。

Header

Name

string

參數名稱。

t

Condition

string

匹配規則。

==

Value

string

條件的匹配值。

g1

IndependentPercentageEnable

boolean

是否啟用按比例灰階。

true

PercentageByRoute

object

流量配置。

integer

配置流量比例,範圍為 1~100。

"2":1

ErrorCode

string

錯誤碼。取值說明如下:

  • 請求成功:不返回 ErrorCode 欄位。

  • 請求失敗:返回 ErrorCode 欄位。具體資訊,請參見本文的錯誤碼列表。

Code

string

介面狀態或 POP 錯誤碼。取值說明如下:

  • 2xx:成功。

  • 3xx:重新導向。

  • 4xx:請求錯誤。

  • 5xx:伺服器錯誤。

200

Success

boolean

是否成功。取值說明如下:

  • true:重啟成功。

  • false:重啟失敗。

true

樣本

正常返回樣本

JSON格式

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

錯誤碼

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

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情