Management Plane API > Networking > Logical Routing And Services > NAT

Get statistics for all logical router NAT rules on a transport node

Returns the summation of statistics for all rules from all logical routers
which are present on given transport node. Only cached statistics are supported.
The query parameter "source=realtime" is not supported.

Request:

Method:
GET
URI Path(s):
/api/v1/transport-nodes/<node-id>/statistics/nat-rules
Request Headers:
n/a
Query Parameters:
DataSourceParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/transport-nodes/fe651e63-04bd-43a4-a8ec-45381a3b71b9/statistics/nat-rules

Successful Response:

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

Example Response:

{ "total_bytes": 0, "total_packets": 0, "transport_node_id": "fe651e63-04bd-43a4-a8ec-45381a3b71b9" }

Required Permissions:

read

Feature:

routing_nat

Additional Errors: