Management Plane API > Networking > Services > Policy Based Routing

Read an Existing Rule

Return existing PBR rule information in a PBR section.

Request:

Method:
GET
URI Path(s):
/api/v1/pbr/sections/<section-id>/rules/<rule-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/pbr/sections/16a93c39-5822-469e-b0be-70728153642e/rules/111616

Successful Response:

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

Example Response:

{ "id": "111616", "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:

read

Feature:

pbr

Additional Errors: