searchSiteSwOrGwPorts
Search switch and gateway port statistics for a site. Returns ports that match the search criteria, including current or most recent port status and statistics within the hour.
Traffic information (Tx/Rx) is reported as cumulative counters since the last device reboot. Use Search Org Switch/Gateway Ports to search switch and gateway port statistics across the organization.
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
uuidQuery Parameters
Type of device. enum: switch, gateway, all
"all"Value in
- "switch"
- "gateway"
- "all"
Authentication state used to filter port results when up==true and the port has an authenticator role. enum: "", authenticated, authenticating, held, init
Value in
- ""
- "authenticated"
- "authenticating"
- "held"
- "init"
Indicates full or half duplex
LTE IMSI value, Check for null/empty
LTE ICCID value, Check for null/empty
LTE IMEI value, Check for null/empty
Filter results by MAC address
Chassis identifier of the chassis type listed
Description supplied by the system on the interface E.g. "GigabitEthernet2/0/39"
Name supplied by the system on the interface E.g. neighbor system name E.g. "Kumar-Acc-SW.mist.local"
Is the POE configured not be disabled.
POE mode depending on class E.g. "802.3at"
Is the device attached to POE
PoE priority used to filter switch port results. enum: low, high
Value in
- "low"
- "high"
Filter results by port identifier
Filter results by port MAC address
Filter results by port speed
STP state used to filter port results when up==true. enum: "", blocking, disabled, forwarding, learning, listening
Value in
- ""
- "blocking"
- "disabled"
- "forwarding"
- "learning"
- "listening"
STP role used to filter port results when up==true. enum: "", alternate, backup, designated, disabled, root, root-prevented
Value in
- ""
- "alternate"
- "backup"
- "designated"
- "disabled"
- "root"
- "root-prevented"
Indicates if interface is up
Optic Slot Partnumber, Check for null/empty
Maximum number of results to return per page
0 <= value100On which field the list should be sorted, -prefix represents DESC order
"timestamp"Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the next URL from the previous response and should not be manually constructed.
Response Body
curl -X GET "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/stats/ports/search"{ "end": 1513177200, "limit": 10, "results": [ { "active": true, "auth_state": "init", "for_site": true, "full_duplex": true, "jitter": 0, "latency": 0, "loss": 0, "lte_iccid": "string", "lte_imei": "string", "lte_imsi": "string", "mac": "5c4527a96580", "mac_count": 0, "mac_limit": 0, "neighbor_mac": "64d814353400", "neighbor_port_desc": "GigabitEthernet1/0/21", "neighbor_system_name": "CORP-D-SW-2", "org_id": "c168ddee-c14c-11e5-8e81-1258369c38a9", "poe_disabled": true, "poe_mode": "802.3af", "poe_on": true, "port_id": "ge-0/0/0", "port_mac": "5c4527a96580", "port_usage": "lan", "power_draw": 0, "rx_bcast_pkts": 0, "rx_bps": 0, "rx_bytes": 4563443626, "rx_errors": 0, "rx_mcast_pkts": 0, "rx_pkts": 0, "site_id": "c1698122-c14c-11e5-8e81-1258369c38a9", "speed": 1000, "stp_role": "designated", "stp_state": "forwarding", "tx_bcast_pkts": 0, "tx_bps": 0, "tx_bytes": 11299516780, "tx_errors": 0, "tx_mcast_pkts": 0, "tx_pkts": 492176, "type": "gateway", "up": true, "xcvr_part_number": "string" } ], "start": 1511967600, "total": 100}countSiteSwOrGwPorts GET
Count switch and gateway port statistics for a site, optionally grouped by the `distinct` field and filtered by port, neighbor, PoE, STP, traffic, and time attributes. Use [Count Org Switch/Gateway Ports](/api/mist/orgs/orgs-stats/orgs-stats---ports/countOrgSwOrGwPorts) to count switch and gateway port statistics across the organization.
getSiteWxRulesUsage GET
Get Wxlan Rule usage