{"type":"api","title":"Get Statistics Per Interface","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/d2f02ba2-fd0d-3a26-bcc5-feafc8f24d17","info":{"title":"Monitoring and Troubleshooting","description":"Includes API operations for the following:\n- Real-time monitoring\n- Accessing statistics APIs and statistics bulk APIs\n- Retrieving device state\n- Managing alarms and events\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Monitoring - Interface Statistics"],"description":"Get statistics per interface","operationId":"getStatisticsPerInterface","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"},"example":{"query":{"condition":"AND","rules":[{"value":["24"],"field":"entry_time","type":"date","operator":"last_n_hours"},{"value":["20.0.1.20"],"field":"vdevice_name","type":"string","operator":"in"}]}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","format":"int32"},"entry_time":{"type":"string"},"interface":{"type":"string"},"rx_kbps":{"type":"number"},"tx_kbps":{"type":"number"},"vdevice_name":{"type":"string"}},"$$ref":"#/components/schemas/InterfaceAggResp"},"examples":{"Interface by type":{"description":"Interface by type","value":[{"down_capacity_percentage":0,"tx_pps":0,"total_mbps":0,"device_model":"vedge-cloud","rx_kbps":0,"interface":"system","tx_octets":0,"oper_status":"Up","rx_errors":0,"bw_down":10000,"tx_pkts":0,"tx_errors":0,"rx_octets":0,"statcycletime":1673959200022,"admin_status":"Up","bw_up":10000,"interface_type":"logical","tenant":"default","entry_time":1673958142101,"vip_time":1673958142101,"af_type":"IPv4","rx_pkts":0,"rx_pps":0,"vmanage_system_ip":"172.16.255.21","tx_drops":0,"rx_drops":0,"tx_kbps":0,"vdevice_name":"172.16.255.21","up_capacity_percentage":0,"vip_idx":284,"host_name":"vm11","vpn_id":0,"id":"RQG-v4UBrf5pDUb4VeQc"},{"down_capacity_percentage":0,"tx_pps":0,"total_mbps":0,"device_model":"vedge-cloud","rx_kbps":0,"interface":"ge0/5","tx_octets":0,"oper_status":"Down","rx_errors":0,"bw_down":0,"tx_pkts":0,"tx_errors":0,"rx_octets":0,"statcycletime":1673959200022,"admin_status":"Down","bw_up":0,"interface_type":"physical","tenant":"default","entry_time":1673958414824,"vip_time":1673958414825,"af_type":"IPv4","rx_pkts":0,"rx_pps":0,"vmanage_system_ip":"172.16.255.21","tx_drops":0,"rx_drops":0,"tx_kbps":0,"vdevice_name":"172.16.255.21","up_capacity_percentage":0,"vip_idx":293,"host_name":"vm11","vpn_id":0,"id":"TgG-v4UBrf5pDUb4VeQc"}]}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"method":"get","path":"/statistics/interface/type"}}