NSX-T Data Center REST API

List NAT Rules Statistics

List NAT Rules Statistics from Tier-1 denoted by Tier-1 ID. This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

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

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/tier-1s/TLR1_Server/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": "/infra/tier-1s/TLR1_Server", "last_update_timestamp": 1726031919747, "statistics": { "total_bytes": 16380, "total_packets": 195, "active_sessions": 0 }, "per_node_statistics": [ { "transport_node_path": "1", "last_update_timestamp": 1726031919747, "total_bytes": 16380, "total_packets": 195, "active_sessions": 0 }, { "transport_node_path": "1", "last_update_timestamp": 1726031919527, "total_bytes": 0, "total_packets": 0, "active_sessions": 0 } ] } ] }

Required Permissions:

read

Feature:

policy_nat_rules

Additional Errors: