NSX-T Data Center REST API

Get the statistics of a specified logical router NAT Rule (Deprecated)

Returns the summation of statistics from all nodes for the Specified
Logical Router NAT Rule. Query parameter "source=realtime" is the only supported source.
Deprecated: This API has been deprecated, please use below Policy APIs
GET /policy/api/v1/infra/tier-0s/<tier-0-id>/nat/<nat-id>/nat-rules<nat-rule-id>/statistics
GET /policy/api/v1/global-infra/tier-0s/<tier-0-id>/nat/<nat-id>/nat-rules<nat-rule-id>/statistics
GET /policy/api/v1/infra/tier-1s/<tier-1-id>/nat/<nat-id>/nat-rules<nat-rule-id>/statistics
GET /policy/api/v1/global-infra/tier-1s/<tier-1-id>/nat/<nat-id>/nat-rules<nat-rule-id>/statistics
GET /policy/api/v1/orgs/<org-id>/projects/<project-id>/infra/tier-1s/<tier-1-id>/nat/<nat-id>/nat-rules<nat-rule-id>/statistics

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

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: