Management Plane API > Networking > Services > Policy Based Routing

Update an Existing Rule and Reorder the Rule

Modifies existing PBR rule along with relative position among
other PBR rules inside a PBR section.

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/pbr/sections/2111d18f-27ba-4f19-a51d-2173c3972410/rules/7168?action=revise&operation=insert_bottom { "id": "7168", "display_name": "PBR-RDS-vpc-5b4cf63d", "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 }

Successful Response:

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

Example Response:

{ "id": "7168", "display_name": "PBR-RDS-vpc-5b4cf63d", "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": 3 }

Required Permissions:

crud

Feature:

pbr

Additional Errors: