All Products
Search
Document Center

Enterprise Distributed Application Service:UpdateSwimmingLane

Last Updated:Jan 08, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Debug

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /pop/v5/trafficmgnt/swimming_lanes

Request parameters

ParameterTypeRequiredDescriptionExample
LaneIdlongYes

The ID of the lane.

224
NamestringNo

The name of the lane.

test-swimlane
EnableRulesbooleanYes

Specifies whether to enable the throttling rule.

true
AppInfosstringNo

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****"}]
EntryRulesstringNo

The configuration of the throttling rule.

[{"priority":1,"path":"/traffictest","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testheadervalue","cond":"==","operator":"rawvalue"}]}]

Response parameters

ParameterTypeDescriptionExample
object

The object data that is returned.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

6CB46AEA-309C-5041-9EC7-FCF4478F****
Dataobject

The data that is returned.

NamespaceIdstring

The ID of the namespace.

cn-beijing:qa
GroupIdlong

The ID of the lane group.

171
EntryRulestring

The rule of the lane.

[{\"condition\":\"AND\",\"enable\":true,\"path\":\"/traffictest\",\"priority\":1,\"restItems\":[{\"cond\":\"==\",\"datum\":\"testheadervalue\",\"name\":\"testheader\",\"operator\":\"rawvalue\",\"type\":\"header\",\"value\":\"testheadervalue\"}]}]"
Tagstring

The tag of the lane.

2cb6b8a
Namestring

The name of the lane.

test-swimlane
Idlong

The ID of the lane.

321
SwimmingLaneAppRelationShipListobject []

The list of associations between the lane and the related application.

AppNamestring

The name of the application.

test-app
Rulesstring

The association rule.

dubbo
LaneIdlong

The ID of the lane.

321
AppIdstring

The ID of the application.

476d26d9-b54c-40b8-8af9-d898cdc2****

Examples

Sample success responses

JSONformat

{
  "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.