Inquiry of dashboard API ( /devices/{serial}/clients )

cumoon
Here to help

Inquiry of dashboard API ( /devices/{serial}/clients )

Hi, there.

 

I have a question about '/devices/{serial}/clients' of dashboard API.

 

I'd like to receive clientList of MX for a specific period of time.

 

But it has only two parameters (t0, timespan).

 

For example, I would like to receive data from 2020-04-01 00:00 to 2022-04-02 00:00:00.

 

How can I get the data I want?

4 Replies 4
sungod
Head in the Cloud

Several API calls allow only start time or timespan, rather than a from-to range.

 

A simple solution is if you want to get, say, 24 hours of data starting 0000 ending 2359, set t0 to date at 0000 or timespan to 24 hours and run at date+1 0000.

 

Thank you for your reply.

 

It seems that the '/devices/{serial}/clients' API does not provide an end time...

AutomationDude
Building a reputation

@sungod answered pretty well for how it works. I do think however that you're trying to get data from 2020 and that may not work. I believe there is a 1 year limit

Thank you for your reply.

 

Oh, my point here is that it's a certain period of time where there's start timing and an end timing.
The time given as an example over there is just an example.

 

It seems that the '/devices/{serial}/clients' API does not provide an end time...

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.