API question

dsekely_brs
Comes here often

API question

Is it possible to pull the usage information for MR AP's using the API?  I've tried some of the usage

I want to setup an email alert if an AP does not have usage in the past x days/hours.  I have had issues with some AP's and they need to be rebooted.  

This information is on the web GUI as seen below

Screenshot 2023-10-01 at 10.58.45 PM.png

3 Replies 3
GreenMan
Meraki Employee
Meraki Employee
RaphaelL
Kind of a big deal
Kind of a big deal

dsekely_brs
Comes here often

@RaphaelL that looks like what I need.  When I run it for my networks the totals don't match up

example in the dashboard for the past 7 days it shows 565.4MB for this one AP but this is what I get from the API

[{'startTs': '2023-09-25T00:00:00Z', 'endTs': '2023-09-26T00:00:00Z', 'totalKbps': None, 'sentKbps': None, 'receivedKbps': None},

{'startTs': '2023-09-26T00:00:00Z', 'endTs': '2023-09-27T00:00:00Z', 'totalKbps': None, 'sentKbps': None, 'receivedKbps': None},

{'startTs': '2023-09-27T00:00:00Z', 'endTs': '2023-09-28T00:00:00Z', 'totalKbps': None, 'sentKbps': None, 'receivedKbps': None},

{'startTs': '2023-09-28T00:00:00Z', 'endTs': '2023-09-29T00:00:00Z', 'totalKbps': None, 'sentKbps': None, 'receivedKbps': None},

{'startTs': '2023-09-29T00:00:00Z', 'endTs': '2023-09-30T00:00:00Z', 'totalKbps': 5, 'sentKbps': 0, 'receivedKbps': 5}, {'startTs': '2023-09-30T00:00:00Z', 'endTs': '2023-10-01T00:00:00Z', 'totalKbps': 26, 'sentKbps': 6, 'receivedKbps': 20}, {'startTs': '2023-10-01T00:00:00Z', 'endTs': '2023-10-02T00:00:00Z', 'totalKbps': 19, 'sentKbps': 2, 'receivedKbps': 17}]


Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels