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/summary
Request Headers:
n/a
Query Parameters:
PolicyRuntimeRequestParameters
+
PolicyRuntimeRequestParameters
(
schema
)
Name
Description
Type
Notes
enforcement_point_path
String Path of the enforcement point
enforcement point path, forward slashes must be escaped using %2F.
string
source
The data source, either realtime or cached. If not provided, cached data is returned.
DataSourceType
Request Body:
n/a
Example Request:
https://{{nsx-mgr}}/policy/api/v1/infra/tier-1s/TLR1_LR/segments/TIER1_DOWNLINK_SWITCH/gateway-interface-statistics/summary
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyInterfaceStatisticsSummary
+
PolicyInterfaceStatisticsSummary
(
schema
)
Name
Description
Type
Notes
interface_policy_path
Policy path for the interface
Policy path for the interface
string
last_update_timestamp
Timestamp when the data was last updated; unset if data source has never updated the data.
EpochMsTimestamp
Readonly
logical_router_port_id
The ID of the logical router port
string
Required
rx
LogicalRouterPortCounters
Readonly
tx
LogicalRouterPortCounters
Readonly
Example Response:
{ "interface_policy_path": "/infra/tier-1s/TLR1_LR/segments/TIER1_DOWNLINK_SWITCH", "last_update_timestamp": 1591854157020, "rx": { "total_bytes": 314886932, "total_packets": 678919, "dropped_packets": 151381 }, "tx": { "total_bytes": 75554376, "total_packets": 1130225, "dropped_packets": 151381 }, "logical_router_port_id": "cbac60fb-841f-4d29-951b-500f527bda34" }
Required Permissions:
read
Feature:
policy_statistics
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable