searchSiteSwitchPorts

GET https://{{host}}/api/v1/sites/:site_id/stats/switch_ports/search

#### Search Parameter Parameter|Type|Description :-------------: |:-------------: |:-------------: fullduplex|boolean|indicates full or half duplex mac|string|device identifier neighbormac|string|Chassis identifier of the chassis type listed neighborportdesc|string|Description supplied by the system on the interface E.g. “GigabitEthernet2/0/39” neighborsystemname|string|Name supplied by the system on the interface E.g. neighbor system name E.g. “Kumar-Acc-SW.mist.local” poedisabled|boolean|is the POE configured not be disabled. poemode|string|poe mode depending on class E.g. “802.3at” poeon|boolean|is the device attached to POE portid|string|interface name portmac|string|interface mac address powerdraw|float|Amount of power being used by the interface at the time the command is executed. Unit in watts. txpkts|int|Output packets rxpkts|int|Input packets txbytes|int|Output bytes rxbytes|int|Input bytes txbps|int|Output rate rxbps|int|Input rate txmcastpkts|int|Multicast output packets txbcastpkts|int|Broadcast output packets rxmcastpkts|int|Multicast input packets rxbcastpkts|int|Broadcast input packets speed|int|port speed stpstate|string|if up == true, forwarding / blocking / learning / listening / disabled stprole|string|if up == true, designated / backup / alternate / root / root-prevented auth_state|string|if up == true && has Authenticator role, init / authenticated / authenticating / held up|boolean|indicates if interface is up

#### Response Parameter Parameter|Type|Description :-------------: |:-------------: |:-------------: fullduplex|boolean|indicates full or half duplex mac|string| neighbormac|string|chassis identifier of the chassis type listed neighborportdesc|string|description supplied by the system on the interface E.g. “GigabitEthernet2/0/39” neighborsystemname|string|name supplied by the system on the interface E.g. neighbor system name E.g. “Kumar-Acc-SW.mist.local” poedisabled|boolean|is the POE configured not be disabled. poemode|string|poe mode depending on class E.g. “802.3at” poeon|boolean|is the device attached to POE portid|string|interface name portmac|string|interface mac address powerdraw|float|amount of power being used by the interface at the time the command is executed. Unit in watts. rxbps|int|rx bandwidth rxbytes|int|rx bytes rxpkts|int|rx packets speed|int|port speed txbps|int|tx bandwidth txbytes|int|tx bytes txpkts|int|tx packets up|boolean|indicates if interface is up

RESPONSES

status: OK

{"start":1511967600,"end":1513177200,"limit":10,"total":100,"results":[{"rx_bytes":4563443626,"rx_pkts":30360265,"site_id":"c1698122-c14c-11e5-8e81-1258369c38a9","neighbor_system_name":"CORP-D-SW-2","org_id":"c168ddee-c14c-11e5-8e81-1258369c38a9","up":true,"port_mac":"5c4527a96580","neighbor_port_desc":"GigabitEthernet1/0/21","tx_pkts":14610886,"mac":"5c4527a96580","tx_bytes":11299516780,"neighbor_mac":"64d814353400","poe_disabled":true,"speed":1000,"port_id":"me0"},{"rx_bps":1176,"rx_bytes":2628451,"rx_pkts":11829,"org_id":"c168ddee-c14c-11e5-8e81-1258369c38a9","full_duplex":true,"site_id":"c1698122-c14c-11e5-8e81-1258369c38a9","up":true,"poe_mode":"802.3at","port_mac":"0c8126c6ff6f","mac":"0c8126c6ff6c","tx_pkts":492176,"neighbor_port_desc":"ETH0","tx_bps":14264,"port_id":"ge-0/0/0","tx_bytes":96810192,"neighbor_mac":"5c5b350eb361","neighbor_system_name":"kevinsap","speed":1000,"poe_on":true,"power_draw":5.4}]}