Policy > Networking > Connectivity > Tier-1 Gateways > Interfaces > Statistics

Get statistics for downlink router port on tier-1 router

Segment ID is the ID of the segment that is connected to the the tier-1

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-1s/<tier-1-id>/segments/<segment-id>/gateway-interface-statistics
/policy/api/v1/global-infra/tier-1s/<tier-1-id>/segments/<segment-id>/gateway-interface-statistics
Request Headers:
n/a
Query Parameters:
BaseEdgeStatisticsRequestParameters+
Request Body:
n/a

Example Request:

https://{{nsx-mgr}}/policy/api/v1/infra/tier-1s/TLR1_LR/segments/TIER1_DOWNLINK_SWITCH/gateway-interface-statistics?edge_path=/infra/sites/default/enforcement-points/default/edge-clusters/7f7d37a7-b78e-4378-949d-09190cbfef7d/edge-nodes/a831390e-a7c8-11ea-9102-020063e79023

Successful Response:

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

Example Response:

{ "logical_router_port_id": "/infra/tier-1s/TLR1_LR", "per_node_statistics": [ { "last_update_timestamp": 1591806707306, "rx": { "total_bytes": 78780, "total_packets": 1313, "dropped_packets": 94459 }, "tx": { "total_bytes": 57559796, "total_packets": 813354, "dropped_packets": 94459 } } ] }

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: