Creates or updates a lane group for an end-to-end canary release.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateOrUpdateSwimmingLaneGroup |
update |
*GovernanceNamespace
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
The region. |
cn-shanghai |
| Namespace |
string |
No |
The name of the MSE namespace. |
default |
| Id |
integer |
No |
The ID of the lane group. If you set this parameter to -1, a lane group is created. If you set this parameter to a value greater than 0, the specified lane group is modified. |
1 |
| Name |
string |
Yes |
The name of the lane group. |
group1 |
| Status |
integer |
No |
Specifies whether the lane group is enabled. A value of 0 indicates that the lane group is disabled. A value of 1 indicates that the lane group is enabled. |
0 |
| EntryApp |
string |
No |
The entry application. The value is in the Source:ID format. Examples:
|
mse-gw:gw-2b1407e050f1446xxxcd2a65fd9xxxx |
| AppIds |
string |
No |
The IDs of applications. Separate multiple application IDs with commas (,). |
xxxxn1po62@492b8f98d4bxxxx,xxxxn1po62@2d8f5d1b7f2xxxx |
| MessageQueueGrayEnable |
boolean |
No |
Specifies whether to enable canary release for messages. |
true |
| MessageQueueFilterSide |
string |
No |
The side for message filtering in a canary release. |
Server |
| DbGrayEnable |
boolean |
No |
This parameter is deprecated. Specifies whether to enable canary release for databases. |
true |
| RecordCanaryDetail |
boolean |
No |
Specifies whether to record the details of canary release requests. |
false |
| Paths |
array |
No |
This parameter is deprecated. This parameter is used when a Java gateway is the entry application. |
|
|
string |
No |
This parameter is deprecated. The path. |
a |
|
| RouteIds |
array |
No |
The list of route IDs. If a cloud-native gateway is used as the entry application, you must call this operation to pass the list of route IDs for the cloud-native gateway before you create a lane for the lane group. |
|
|
integer |
No |
The route ID. |
111 |
|
| CanaryModel |
integer |
No |
The canary release mode.
|
1 |
| SwimVersion |
integer |
No |
The version of the end-to-end canary release. Valid values: 0 and 2. A value of 0 is not recommended because you must specify a route. A value of 2 is recommended because you do not need to specify a route. |
2 |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
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. |
请求处理成功 |
| 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 |
Examples
Success response
JSON format
{
"RequestId": "EE5C32A1-BC0E-4B79-817C-103E4EDF****",
"Success": true,
"ErrorCode": "Success",
"Message": "请求处理成功\n",
"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
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.