Creates a lane.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /pop/v5/trafficmgnt/swimming_lanes
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
LogicalRegionId | string | Yes | The ID of the custom namespace. The ID is in the | cn-beijing:test |
Name | string | Yes | The name of the lane. | test1 |
Tag | string | Yes | The tag. | tag |
GroupId | long | Yes | The ID of the lane group. | 95 |
EntryRules | string | Yes | The throttling conditions. | [{"priority":1,"path":"/traffic","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testvalue","cond":"==","operator":"rawvalue"}]}] |
EnableRules | boolean | No | Specifies whether to enable the throttling rule. | true |
AppInfos | string | No | The information about applications related to the lane. | [{"appId":"f72deaac-26ba-429a-948d-5fa47c4a****"},{"appId":"5049d2c8-f997-4fc9-92a2-153506a6****"}] |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "success",
"RequestId": "75972A87-5682-5277-ADA7-DA2A01BE****",
"Data": {
"NamespaceId": "cn-beijing:test",
"GroupId": 95,
"EntryRule": "[{\\\"condition\\\":\\\"AND\\\",\\\"enable\\\":false,\\\"path\\\":\\\"/traffic\\\",\\\"priority\\\":1,\\\"restItems\\\":[{\\\"cond\\\":\\\"==\\\",\\\"datum\\\":\\\"testvalue\\\",\\\"name\\\":\\\"testheader\\\",\\\"operator\\\":\\\"rawvalue\\\",\\\"type\\\":\\\"header\\\",\\\"value\\\":\\\"testvalue\\\"}]}]",
"AppInfos": "[{\"appId\":\"9dcba109-ee9f-4e67-8916-41\n*******\"}]",
"Tag": "8202e09",
"Name": "test1",
"Id": 88,
"SwimmingLaneAppRelationShipList": [
{
"AppName": "test-app",
"Rules": "dubbo",
"LaneId": 88,
"AppId": "bd170895-096c-4944-9007-d4582c77****"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
605 | Edas.errorcode.ParameterInvalid.PointedParameter.message | The value of parameter {0} is invalid. | Invalid parameters: {0} |
For a list of error codes, visit the Service error codes.