cancel
Showing results for 
Search instead for 
Did you mean: 

Query params are ignored

SOLVED
Comes here often

Query params are ignored

Hi there,

 

I'm new to scripting and have trouble filtering API results.

 

To be more precise, i'm using the Postman 'Meraki Dashboard API' and try to filter the results shown after running 'Return the client's network traffic data over time.'. This query currently returns the following values:

"ts":,
"application":
"destination":
"protocol":
"port":
"recv":
"sent":
"numFlows":
"activeSeconds":
},

 

i've tried adding different keys and values under 'Query Params' to filter the results. These keys and params seem to be ignored however. What am i missing? Any resources for filtering postman api results for beginners would be much appreciated.

 

Example:

2019-03-22 11_17_05-Postman.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kind of a big deal

Re: Query params are ignored

This is something the code you write should do, there are no parameters to do this from the API side.

4 REPLIES 4
Highlighted
Kind of a big deal

Re: Query params are ignored

I'm not entirely sure what you're trying to do, but there are no filtering functionalities in that call (apart from the MAC-address you specify).

 

The only thing you can do is limited the number of results returned using the perPage parameter. I tested it out and it seems to work fine here (with perPage set to 5). The startingAfter and endingBefore shouldn't be specified manually but rather use the values as returned by a call. Here's an example, I clicked the headers tab so I could show you the returned "next", "previous" and "last" links:

client_traffic_history.png

Comes here often

Re: Query params are ignored

i want to filter out specific traffic between client and service, in this example iTunes.

My guess would be adding the parameter key 'application' and value 'iTunes' would help me do so. Adding these parameters to an API call don't seem to have any effect.

another way i would like to filter is leaving out columns.

Lets say the API call returns the following columns:
"ts":,
"application":
"destination":
"protocol":
"port":
"recv":
"sent":
"numFlows":
"activeSeconds":
},

I would like to only return the columns ''application" and "protocol". Can this be achieved within a tool like postman?
Kind of a big deal

Re: Query params are ignored

This is something the code you write should do, there are no parameters to do this from the API side.

Meraki Employee CN
Meraki Employee

Re: Query params are ignored

That's where Postman puts the extra pages! I've been looking for that.
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.