Management Plane API > Networking > Services > Policy Based Routing

Get PBR section level statistics.

Get aggregated statistics for all rules for a given pbr section.
Data includes total number of packets, and total number of bytes for all
PBR rules in the given section.

Request:

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

Example Request:

GET https://<nsx-mgr>/api/v1/pbr/sections/d1cba5d1-02dc-4507-b6e8-117cb050e71d/rules/stats

Successful Response:

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

Example Response:

{ "results" : [ { "rule_id": "2", "packet_count": 3806, "byte_count": 322989, "_schema": "PBRRule" }, { "rule_id": "3", "packet_count": 8762, "byte_count": 76201, "_schema": "PBRRule" } ], "result_count" : 2 }

Required Permissions:

read

Feature:

pbr

Additional Errors: