Management Plane API > Networking > Logical Routing And Services > Logical Router Ports

Get the statistics of a specified logical router port on all or a specified node

Returns the statistics for the Logical Router Port. If query parameter
"transport_node_id=" is given, only the statistics
from the given node for the logical router port will be returned.
Otherwise the statistics from each node for the same logical router port
will be returned. The transport_node_id is mandatory if the router port
is not uplink type.
The query parameter "source=cached" will be ignored and it will always return
realtime statistics of the logical router port.

Request:

Method:
GET
URI Path(s):
/api/v1/logical-router-ports/<logical-router-port-id>/statistics
Request Headers:
n/a
Query Parameters:
TransportNodeIdParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-router-ports/9b2ec1c5-cb54-4d69-8d64-14ccad6ae3cf/statistics?transport_node_id=f8431964-f400-4da5-8c18-4ce4e6bd5fa5

Successful Response:

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

Example Response:

{ "logical_router_port_id": "9b2ec1c5-cb54-4d69-8d64-14ccad6ae3cf", "per_node_statistics": [ { "tx": { "dropped_packets": 0, "total_bytes": 1193822, "total_packets": 19695 }, "last_update_timestamp": 1457125914113, "rx": { "dropped_packets": 0, "total_bytes": 1492866, "total_packets": 24077 }, "transport_node_id": "f8431964-f400-4da5-8c18-4ce4e6bd5fa5" } ] }

Required Permissions:

read

Feature:

routing_routers

Additional Errors: