All Products
Search
Document Center

Serverless App Engine:ListAllSwimmingLanes

Last Updated:Jun 11, 2026

Mendaftar semua swimlane.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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:

  • Returns success if the request is successful.

  • Returns a specific error code if the request fails.

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: Route by request content.

  • 1: Route by percentage.

0

Enable

boolean

Indicates whether the swimming lane is enabled.

  • true: enabled

  • false: disabled

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: All conditions are met at the same time.

  • OR: Any condition is met.

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.

  • The ErrorCode parameter is omitted if the request is successful.

  • The ErrorCode parameter is returned if the request fails. For details, see the Error codes section in this topic.

Code

string

The HTTP status code returned. Valid values:

  • 2xx: The request is successful.

  • 3xx: The request is redirected.

  • 4xx: The request is invalid.

  • 5xx: A server error occurs.

200

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

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.