NSX-T Data Center REST API

List NAT Rules Statistics

List NAT Rules Statistics from Tier-0 denoted by Tier-0 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-0s/{tier-0-id}/nat/statistics
/policy/api/v1/global-infra/tier-0s/{tier-0-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-0s/Tier0Gateway1_child_vrf1/nat/statistics

Successful Response:

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

Example Response:

{ "enforcement_point_path": "/infra/sites/default/enforcement-points/default", "router_path": "/infra/tier-0s/Tier0Gateway1_child_vrf1", "last_update_timestamp": 1725968007133, "statistics": { "total_bytes": 7242, "total_packets": 42, "active_sessions": 0 }, "per_node_statistics": [ { "transport_node_path": "0", "last_update_timestamp": 1725968007133, "total_bytes": 0, "total_packets": 0, "active_sessions": 0 }, { "transport_node_path": "0", "last_update_timestamp": 1725968007133, "total_bytes": 7242, "total_packets": 42, "active_sessions": 0 } ] }

Required Permissions:

read

Feature:

policy_nat_rules

Additional Errors: