All Products
Search
Document Center

Microservices Engine:CreateOrUpdateSwimmingLaneGroup

Last Updated:Jun 10, 2026

Membuat atau memperbarui kelompok jalur untuk rilis canary end-to-end.

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

mse:CreateOrUpdateSwimmingLaneGroup

update

*GovernanceNamespace

acs:mse:{#regionId}:{#accountId}:namespace/{#Namespace}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

Region

string

No

Wilayah.

cn-shanghai

Namespace

string

No

Nama namespace MSE.

default

Id

integer

No

ID kelompok jalur. Jika Anda menetapkan parameter ini ke -1, kelompok jalur akan dibuat. Jika Anda menetapkan parameter ini ke nilai yang lebih besar dari 0, kelompok jalur yang ditentukan akan dimodifikasi.

120

Name

string

Yes

Nama kelompok jalur.

group1

Status

integer

No

Apakah kelompok jalur diaktifkan. Nilai 0 menunjukkan bahwa kelompok jalur dinonaktifkan. Nilai 1 menunjukkan bahwa kelompok jalur diaktifkan.

0

EntryApp

string

No

Aplikasi entri. Nilainya dalam format Source:ID. Contoh:

  • mse:${MSE application ID}

  • mse-gw:${MSE cloud-native gateway ID}

  • apig:${cloud-native Gerbang API ID}.

mse-gw:gw-2b1407e050f1446xxxcd2a65fd9xxxx

AppIds

string

No

ID aplikasi. Pisahkan beberapa ID aplikasi dengan koma (,).

xxxxn1po62@492b8f98d4bxxxx,xxxxn1po62@2d8f5d1b7f2xxxx

MessageQueueGrayEnable

boolean

No

Apakah akan mengaktifkan rilis canary untuk Paket.

Valid values:

  • true :

    true.

  • false :

    false.

true

MessageQueueFilterSide

string

No

Sisi untuk penyaringan pesan dalam rilis canary.

Server

DbGrayEnable

boolean

No

Parameter ini sudah tidak digunakan lagi. Apakah akan mengaktifkan rilis canary untuk database.

Valid values:

  • true :

    true.

  • false :

    false.

true

RecordCanaryDetail

boolean

No

Apakah akan mencatat Catatan detail permintaan rilis canary.

false

Paths

array

No

Parameter ini sudah tidak digunakan lagi. Parameter ini digunakan ketika gerbang Java menjadi aplikasi entri.

string

No

This parameter is deprecated. The path.

a

RouteIds

array

No

Daftar ID entri rute. Jika gerbang cloud-native digunakan sebagai aplikasi entri, Anda harus memanggil operasi ini untuk meneruskan daftar ID entri rute untuk gerbang cloud-native sebelum Anda membuat jalur untuk kelompok jalur.

integer

No

The route ID.

111

CanaryModel

integer

No

Mode rilis canary.

  • 0: Perutean berbasis konten

  • 1: Perutean proporsional.

1

SwimVersion

integer

No

Versi rilis canary end-to-end. Nilai valid: 0 dan 2. Nilai 0 tidak direkomendasikan karena Anda harus menentukan entri rute. Nilai 2 direkomendasikan karena Anda tidak perlu menentukan entri rute.

2

AcceptLanguage

string

No

Bahasa tanggapan. Nilai valid:

  • zh: Mandarin

  • en: Inggris.

zh

Elemen respons

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

EE5C32A1-BC0E-4B79-817C-103E4EDF****

Success

boolean

Indicates whether the request was successful. Valid values: `true` and `false`.

true: The request was successful. false: The request failed.

true

ErrorCode

string

The error code.

Success

Message

string

The returned message.

Succ

Data

object

The returned data.

{}

Name

string

The application name.

example-app

DbGrayEnable

string

Indicates whether canary release is enabled for databases.

true

UserId

string

The ID of the user to which the application belongs.

12345

MessageQueueFilterSide

string

The side for message filtering in a canary release.

Client

AppIds

string

A list of application IDs, separated by commas (,).

abcd1@abcde123,abcd1@abcde124

Namespace

string

The name of the MSE namespace.

prod

RecordCanaryDetail

boolean

Indicates whether the details of canary release requests are recorded.

true

Id

integer

The ID of the lane group.

2047

EntryApp

string

The entry application.

mse:abcd1@a2345

Region

string

The region where the application resides.

cn-hangzhou

MessageQueueGrayEnable

boolean

Indicates whether canary release is enabled for messages.

true

paths

string

This parameter is deprecated. If a Java gateway is the entry application, this parameter specifies a list of paths.

["/a"]

Paths

string

This parameter is deprecated. If a Java gateway is the entry application, this parameter specifies a list of paths.

["/a"]

canaryModel

integer

The canary release mode.

  • 0: Content-based routing

  • 1: Proportional routing

0

CanaryModel

integer

The canary release mode.

  • 0: Content-based routing

  • 1: Proportional routing

0

Contoh

Respons sukses

JSONformat

{
  "RequestId": "EE5C32A1-BC0E-4B79-817C-103E4EDF****",
  "Success": true,
  "ErrorCode": "Success",
  "Message": "Succ",
  "Data": {
    "Name": "example-app",
    "DbGrayEnable": "true",
    "UserId": "12345",
    "MessageQueueFilterSide": "Client",
    "AppIds": "abcd1@abcde123,abcd1@abcde124",
    "Namespace": "prod",
    "RecordCanaryDetail": true,
    "Id": 2047,
    "EntryApp": "mse:abcd1@a2345",
    "Region": "cn-hangzhou",
    "MessageQueueGrayEnable": true,
    "paths": "[\"/a\"]",
    "Paths": "[\"/a\"]",
    "canaryModel": 0,
    "CanaryModel": 0
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IllegalRequest Invalid request:%s
400 InvalidParameter Parameter error:%s
500 InternalError Console error. Try again later:%s
403 NoPermission You are not authorized to perform this operation:%s
404 NotFound Not found:%s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.