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
+
PBRStats
(
schema
)
Name
Description
Type
Notes
_links
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST.
array of
ResourceLink
Readonly
_schema
Schema for this resource
string
Readonly
_self
Link to this resource
SelfResourceLink
Readonly
byte_count
Bytes count
Aggregated number of bytes processed by the rule.
integer
Readonly
packet_count
Packets count
Aggregated number of packets processed by the rule.
integer
Readonly
rule_id
PBR Rule ID
Rule Identifier of the PBR rule. This is a globally unique number.
string
Readonly
Example Response:
{ "rule_id": "2", "packet_count": 3806, "byte_count": 322989, "_schema": "PBRRule" }
Required Permissions:
read
Feature:
pbr
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable