Mengambil detail swimlane.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeSwimmingLane |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/cas/gray/describeSwimmingLane HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
No |
ID namespace. |
cn-beijing:test |
| GroupId |
integer |
No |
ID kelompok lane. |
2074 |
| LaneId |
integer |
No |
ID swimlane. |
9637 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The information returned. |
||
| RequestId |
string |
The request ID. |
30375C38-F4ED-4135-A0AE-5C75DC7F**** |
| Message |
string |
The message returned with the response.
|
success |
| TraceId |
string |
The trace ID. You can use this ID to query the details of a call. |
0a98a02315955564772843261e**** |
| Data |
object |
The data returned. |
|
| LaneId |
integer |
The ID of the lane. |
9488 |
| LaneName |
string |
The name of the lane. |
mse-test |
| LaneTag |
string |
The tag of the lane. |
{"alicloud.service.tag":"g1"} |
| Enable |
boolean |
Indicates whether the lane is enabled.
|
true |
| EnableRules |
boolean |
Indicates whether traffic rules are enabled. |
true |
| CanaryModel |
integer |
The mode for the end-to-end canary release. Valid values:
|
0 |
| Apps |
array<object> |
A list of associated applications. |
|
|
object |
An application that is associated with the lane. |
||
| AppId |
string |
The ID of the application. |
6b4c0f64-f679-4580-8105-91eac4****** |
| 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 MSE namespace. |
6733e538-d52f-48e6-91a4-192f91****** |
| AppEntryRule |
object |
The application entry rule. |
|
| Paths |
array |
The request path. |
|
|
string |
The URL path. |
/Path |
|
| Percentage |
integer |
The traffic ratio. Valid values: 0 to 100. |
50 |
| ConditionJoiner |
string |
Logical connectors between conditions:
|
AND |
| Conditions |
array<object> |
The matching condition. |
|
|
object |
The condition item. |
||
| Type |
string |
Parameter type. |
Header |
| Name |
string |
The name of the parameter. |
t |
| Condition |
string |
The matching rule. |
== |
| Value |
string |
The match value of the condition. |
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 entry rule for the MSE Gateway. |
|
| RouteIds |
array |
The list of route IDs. |
|
|
integer |
The ID of the route. |
["1001","1002"] |
|
| 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 |
| 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 of the condition. |
g1 |
| PercentageByRoute |
object |
The traffic configuration. |
|
|
integer |
Configure the traffic ratio. The range is 1 to 100. |
100 |
|
| IndependentPercentageEnable |
boolean |
Whether to enable proportional grayscale. |
true |
| ConditionJoiner |
string |
The logical connector between conditions. |
AND |
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code that is returned.
|
200 |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "30375C38-F4ED-4135-A0AE-5C75DC7F****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"LaneId": 9488,
"LaneName": "mse-test",
"LaneTag": "{\"alicloud.service.tag\":\"g1\"}",
"Enable": true,
"EnableRules": true,
"CanaryModel": 0,
"Apps": [
{
"AppId": "6b4c0f64-f679-4580-8105-91eac4******",
"AppName": "test",
"MseAppId": "mse-cn-53y49******",
"MseAppName": "sae-test",
"mseNamespaceId": "6733e538-d52f-48e6-91a4-192f91******"
}
],
"AppEntryRule": {
"Paths": [
"/Path"
],
"Percentage": 50,
"ConditionJoiner": "AND",
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1",
"Values": [
"g1"
]
}
],
"IndependentPercentageEnable": true,
"PercentageByPath": {
"key": 100
}
},
"MseGatewayEntryRule": {
"RouteIds": [
0
],
"Routes": [
{
"RouteId": 9504,
"RouteName": "demo\n",
"RoutePredicate": {
"PathPredicate": {
"Path": "/Path",
"Type": "Header"
}
}
}
],
"Percentage": 100,
"Conditions": [
{
"Type": "Header",
"Name": "t",
"Condition": "==",
"Value": "g1"
}
],
"PercentageByRoute": {
"key": 100
},
"IndependentPercentageEnable": true,
"ConditionJoiner": "AND"
}
},
"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.