Management Plane API > Networking > Services > Policy Based Routing

Update an Existing Section, Including Its Rules

Modifies existing PBR section along with its association with rules.
When invoked on a large number of rules, this API is supported only at low
rates of invocation (not more than 2 times per minute). The typical latency
of this API with about 1024 rules is about 15 seconds in a cluster setup.
This API should not be invoked with large payloads at automation speeds.

Instead, to update rule content, use:
PUT /api/v1/pbr/sections/<section-id>/rules/<rule-id>

Request:

Method:
POST
URI Path(s):
/api/v1/pbr/sections/<section-id>?action=update_with_rules
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PBRSectionRuleList+

Example Request:

POST https://<nsx-mgr>/api/v1/pbr/sections/79b29ea5-051a-4ab2-af85-fb6520a9f881?action=update_with_rules { "_revision": 1, "id": "79b29ea5-051a-4ab2-af85-fb6520a9f881", "display_name": "DS-PBR-vpc-5b4cf63d", "tags": [], "rules": [ { "id": "1639424", "display_name": "PBR-RDS-vpc-5b4cf63d", "notes": "This is a rule for distributed access to AWS RDS services", "destinations": [ { "target_display_name": "RDS-vpc-5b4cf63d", "is_valid": true, "target_type": "IPSet", "target_id": "96ebbc9f-6eae-4009-b709-532820dbba2a" } ], "logged": false, "action": "ROUTE_TO_UNDERLAY_NAT", "disabled": false } ] }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PBRSectionRuleList+

Example Response:

{ "resource_type": "PBRSectionRuleList", "id": "79b29ea5-051a-4ab2-af85-fb6520a9f881", "display_name": "DS-PBR-vpc-5b4cf63d", "tags": [], "rule_count": 1, "rules": [ { "id": "1639424", "display_name": "PBR-RDS-vpc-5b4cf63d", "notes": "This is a rule for distributed access to AWS RDS services", "destinations": [ { "target_display_name": "RDS-vpc-5b4cf63d", "is_valid": true, "target_type": "IPSet", "target_id": "96ebbc9f-6eae-4009-b709-532820dbba2a" } ], "logged": false, "action": "ROUTE_TO_UNDERLAY_NAT", "disabled": false, "_revision": 2 } ], "_last_modified_user": "system", "_last_modified_time": 1446249271991, "_revision": 2 }

Required Permissions:

crud

Feature:

pbr

Additional Errors: