NSX-T Data Center REST API

Get Statistics for Logical Port of a Given Port ID (lport-id) (Deprecated)

Returns statistics of a specified logical port. If the logical port is attached to
a logical router port, query parameter "source=realtime" is not supported.
Deprecated:
This api is deprecated from 3.2.2. Please use policy api -
/infra/segments/<segment-id>/ports/<segment-port-id>/statistics

Request:

Method:
GET
URI Path(s):
/api/v1/logical-ports/{lport-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:
LogicalPortStatistics+

Example Response:

{ "tx_packets": { "total": 0, "dropped": 0, "multicast_broadcast": 0 }, "rx_bytes": { "total": 11473, "multicast_broadcast": 11473 }, "tx_bytes": { "total": 0, "multicast_broadcast": 0 }, "rx_packets": { "total": 56, "dropped": 0, "multicast_broadcast": 56 }, "logical_port_id": "04efc498-b872-40fc-83f8-ebf9317a2766", "last_update_timestamp": 1453500812476 }

Required Permissions:

read

Feature:

aggregation_service_health_monitoring

Additional Errors: