Which Dashboard API Endpoint might I call to get the send/receive traffic statistics for an MX Security Appliance?
Solved! Go to solution.
Take a look at this discussion.
https://community.meraki.com/t5/Developers-APIs/API-to-monitor-WAN-port-traffic/m-p/171213
The only statistics I know about being able to get via API is what interface are being used and the amount of sent and received data.
How about netflow?
I’m already exporting Netflow/IPFIX but not via API. Which endpoint were you referring to? Thanks so much.
MX 😉
The only endpoints I am aware of are the Uplink Loss and Latency and the Uplink Status, which if my memory serves me do not provide port/interface or send/receive data.
Take a look at this discussion.
https://community.meraki.com/t5/Developers-APIs/API-to-monitor-WAN-port-traffic/m-p/171213
Thanks so much. This is what the default response looks like:
curl -L --request GET \
--url 'https://api.meraki.com/api/v1/networks/[Network_ID]/appliance/uplinks/usageHistory' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Accept: application/json'
[{"startTime":"2023-12-07T03:28:00Z","endTime":"2023-12-07T03:29:00Z","byInterface":[{"interface":"wan1","sent":247563,"received":332677}]},{"startTime":"2023-12-07T03:29:00Z","endTime":"2023-12-07T03:30:00Z","byInterface":[{"interface":"wan1","sent":261868,"received":250274}]},{"startTime":"2023-12-07T03:30:00Z","endTime":"2023-12-07T03:31:00Z","byInterface":[{"interface":"wan1","sent":190085,"received":238026}]},{"startTime":"2023-12-07T03:31:00Z","endTime":"2023-12-07T03:32:00Z","byInterface":[{"interface":"wan1","sent":394777,"received":448573}]},{"startTime":"2023-12-07T03:32:00Z","endTime":"2023-12-07T03:33:00Z","byInterface":[{"interface":"wan1","sent":313629,"received":365290}]},{"startTime":"2023-12-07T03:33:00Z","endTime":"2023-12-07T03:34:00Z","byInterface":[{"interface":"wan1","sent":181944,"received":213173}]},{"startTime":"2023-12-07T03:34:00Z","endTime":"2023-12-07T03:35:00Z","byInterface":[{"interface":"wan1","sent":376337,"received":432645}]}
You can also get the loss/latency details with...
https://developer.cisco.com/meraki/api-v1/get-organization-devices-uplinks-loss-and-latency/