Management Plane API > Networking > Services > Policy Based Routing

Get PBR rule level statistics.

Get aggregated statistics for a rule for given PBR rule.
Stats include total number of packets and total number of bytes for the
PBR rule.

Request:

Method:
GET
URI Path(s):
/api/v1/pbr/sections/<section-id>/rules/<rule-id>/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/2/stats

Successful Response:

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

Example Response:

{ "rule_id": "2", "packet_count": 3806, "byte_count": 322989, "_schema": "PBRRule" }

Required Permissions:

read

Feature:

pbr

Additional Errors: