Management Plane API > Networking > Services > Policy Based Routing

Get All the Rules for a Section

Return all PBR rule(s) information for a given PBR section.

Request:

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

Example Request:

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

Successful Response:

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

Example Response:

{ "cursor": "003600000000-0000-0000-0000-0000000000022305843009213694015", "sort_by": "priority", "result_count": 2, "results": [ { "id": "1430528", "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": 0 }, { "id": "1430529", "display_name": "PBR-S3-vpc-5b4cf63d", "sources": [ { "target_display_name": "S3", "is_valid": true, "target_type": "IPSet", "target_id": "abcbbc9f-6eae-4009-b709-532820dbba2a" } ], "logged": false, "action": "ROUTE_TO_UNDERLAY_NAT", "disabled": false, "_revision": 0 } ], }

Required Permissions:

read

Feature:

pbr

Additional Errors: