NSX-T Data Center REST API

List NAT Rules Statistics

List NAT Rules Statistics from VPC denoted by VPC ID.

Request:

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

Example Request:

GET https://<policy-mgr>/policy/api/v1/orgs/default/projects/Production_Prj/vpcs/vpc1/nat/statistics

Successful Response:

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

Example Response:

{ "results": [ { "enforcement_point_path": "/infra/sites/default/enforcement-points/default", "router_path": "/orgs/default/projects/Production_Prj/vpcs/vpc1", "last_update_timestamp": 1726032504806, "statistics": { "total_bytes": 8796, "total_packets": 44, "active_sessions": 0 }, "per_node_statistics": [ { "transport_node_path": "1", "last_update_timestamp": 1726032504806, "total_bytes": 8796, "total_packets": 44, "active_sessions": 0 } ] } ] }

Required Permissions:

read

Feature:

policy_nat_rules

Additional Errors: