Membuat atau memperbarui kelompok jalur untuk rilis canary end-to-end.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateOrUpdateSwimmingLaneGroup |
update |
*GovernanceNamespace
|
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-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 |
| 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 |
| 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.
|
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 |
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 |
| CanaryModel |
integer |
The canary release mode.
|
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.