11-25-2020 01:21 AM
I am using Postman and so far I was able to setup the baseUrl, the meraki API key, OrganizationId and networkId. When I want to use other GET functions I get stuck because I have no clue what the syntax is for all these different parameters.
Is there a description available on how to use certain Query Params?
For example, I want to use getOrganizationUplinksLossAndLatency
Here I need to enter t0 and t1, or timespan and optionally uplink and ip.
What is de date format I should use for t0/t1 and timespan?
How do I have uplink and ip set to "default" so it returns all uplinks/ all destinations IP's?
I have little experience with API's and coding in general. Please help a noob out.
Solved! Go to Solution.
11-26-2020 04:06 AM
yes exactly.
you've selected timespan, uplink & ip, but you are not providing any values. You can see that also in the url that the parameters are there.
Try to deselect timespan, uplink & ip. That way it will use the default values.
11-25-2020 11:00 AM
t0 and t1 are timestamps which look like this: t0=2020-11-24T18:00:00Z&t1=2020-11-24T18:04:00Z
timespan is a number in seconds -> 5 minutes = 300, 2 minutes = 120. 5 minutes is also the maximum you can specify here.
to use the default values for uplink/ip just don't specify these parameters.
11-26-2020 01:59 AM
@Greenberet thanks for the reply.
I have now tried this in postman, but still can't get it to work. Forgive me for being completely green
When I add the t0 and t1 and then run I get the following error: timespan' must be a float.
After adding 300 as timespan I get another error: uplink' must be one of: 'wan1', 'wan2' or 'cellular. (I would need all uplinks in this case)
When I then set uplink to wan1 I get yet another error: please specify either timespan or both t0 and t1
I'm lost..
11-26-2020 02:12 AM
Can you share a screenshot of your postman request? Just censor the IDs
11-26-2020 04:02 AM
Not sure if this is what you mean:
11-26-2020 04:06 AM
yes exactly.
you've selected timespan, uplink & ip, but you are not providing any values. You can see that also in the url that the parameters are there.
Try to deselect timespan, uplink & ip. That way it will use the default values.
11-26-2020 04:26 AM
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