12-06-2023 01:41 PM
Which Dashboard API Endpoint might I call to get the send/receive traffic statistics for an MX Security Appliance?
Solved! Go to Solution.
12-06-2023 02:58 PM
Take a look at this discussion.
https://community.meraki.com/t5/Developers-APIs/API-to-monitor-WAN-port-traffic/m-p/171213
12-06-2023 02:27 PM
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?
12-06-2023 02:35 PM
I’m already exporting Netflow/IPFIX but not via API. Which endpoint were you referring to? Thanks so much.
12-06-2023 02:55 PM
MX 😉
12-06-2023 02:58 PM
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.
12-06-2023 02:58 PM
Take a look at this discussion.
https://community.meraki.com/t5/Developers-APIs/API-to-monitor-WAN-port-traffic/m-p/171213
12-06-2023 07:43 PM
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}]}
12-07-2023 02:00 AM
You can also get the loss/latency details with...
https://developer.cisco.com/meraki/api-v1/get-organization-devices-uplinks-loss-and-latency/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide