NSX-T Data Center REST API

Get Statistics for Logical Switch of the Given ID (lswitch-id). (Deprecated)

Returns statistics of a specified logical switch. For real time statistics source, transport_node_id and stats_type are mandatory.
Deprecated: This API is now deprecated. Please use new API - GET policy/api/v1/infra/segments/<segment-id>/statistics

Request:

Method:
GET
URI Path(s):
/api/v1/logical-switches/{lswitch-id}/statistics
Request Headers:
n/a
Query Parameters:
LogicalSwitchStatisticsParameters+
Request Body:
n/a

Successful Response:

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

Example Response:

{ "tx_packets": { "total": 18, "dropped": 0, "multicast_broadcast": 0 }, "rx_bytes": { "total": 22358, "multicast_broadcast": 11473 }, "tx_bytes": { "total": 1068, "multicast_broadcast": 0 }, "rx_packets": { "total": 98, "dropped": 42, "multicast_broadcast": 56 }, "logical_switch_id": "2bcc9f42-0fb8-4a30-b4a6-db6d4abedf5a" }

Required Permissions:

read

Feature:

aggregation_service_health_monitoring

Additional Errors: