NSX-T Data Center REST API

Get NAT Rule Statistics

Get NAT Rule Statistics from VPC denoted by VPC ID, under NAT section
denoted by <nat-id>.
Under VPC there will be 2 different NATs(sections).
(USER and NAT64)
For more details related to NAT section please refer to PolicyNAT schema.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/nat/{nat-id}/nat-rules/{nat-rule-id}/statistics
Request Headers:
n/a
Query Parameters:
PolicyStatisticsAggregateParameters+
Request Body:
n/a

Successful Response:

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

Example Response:

{ "results": [ { "rule_path": "/orgs/org1/projects/project1/vpcs/vpc1/nat/USER/nat-rules/1", "enforcement_point_path": "/infra/sites/default/enforcement-points/default", "rule_statistics": [ { "total_bytes": 0, "active_sessions": 0, "total_packets": 0, "last_update_timestamp": 1537502752201 }, { "total_bytes": 0, "active_sessions": 0, "total_packets": 0, "last_update_timestamp": 1537502753915 } ] } ] }

Required Permissions:

read

Feature:

policy_nat_rules

Additional Errors: