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

Get the statistics of a specified logical router NAT Rule

Returns the summation of statistics from all nodes for the Specified
Logical Router NAT Rule. Query parameter "source=realtime" is the only supported source.

Request:

Method:
GET
URI Path(s):
/api/v1/logical-routers/<logical-router-id>/nat/rules/<rule-id>/statistics
Request Headers:
n/a
Query Parameters:
DataSourceParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-routers/de211ce9-291e-4876-ace6-606b3e32bf46/nat/rules/1026/statistics?source=realtime

Successful Response:

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

Example Response:

{ "total_bytes": 9240, "total_packets": 110, "active_sessions": 1, "logical_router_id": "de211ce9-291e-4876-ace6-606b3e32bf46", "last_update_timestamp": 1457541997577, "id": "1026" }

Required Permissions:

read

Feature:

routing_nat

Additional Errors: