Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /pop/v5/trafficmgnt/swimming_lanes
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
LaneId | long | Yes | The ID of the lane. | 224 |
Name | string | No | The name of the lane. | test-swimlane |
EnableRules | boolean | Yes | Specifies whether to enable the throttling rule. | true |
AppInfos | string | No | The list of applications that are related to the lane. | [{"appId":"8e7689af-6ddd-4676-8ee6-5fbecdf2****"},{"appId":"f72deaac-26ba-429a-948d-5fa47c4a****"},{"appId":"99a2d4b5-99a5-4e25-a964-1bd03a17****"}] |
EntryRules | string | No | The configuration of the throttling rule. | [{"priority":1,"path":"/traffictest","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testheadervalue","cond":"==","operator":"rawvalue"}]}] |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "success",
"RequestId": "6CB46AEA-309C-5041-9EC7-FCF4478F****",
"Data": {
"NamespaceId": "cn-beijing:qa",
"GroupId": 171,
"EntryRule": "[{\\\"condition\\\":\\\"AND\\\",\\\"enable\\\":true,\\\"path\\\":\\\"/traffictest\\\",\\\"priority\\\":1,\\\"restItems\\\":[{\\\"cond\\\":\\\"==\\\",\\\"datum\\\":\\\"testheadervalue\\\",\\\"name\\\":\\\"testheader\\\",\\\"operator\\\":\\\"rawvalue\\\",\\\"type\\\":\\\"header\\\",\\\"value\\\":\\\"testheadervalue\\\"}]}]\"",
"Tag": "2cb6b8a",
"Name": "test-swimlane",
"Id": 321,
"SwimmingLaneAppRelationShipList": [
{
"AppName": "test-app",
"Rules": "dubbo",
"LaneId": 321,
"AppId": "476d26d9-b54c-40b8-8af9-d898cdc2****"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.