/networks/{networkId}/clients API multiple values for vlan request parameter

JHChicago
New here

/networks/{networkId}/clients API multiple values for vlan request parameter

for the /networks/{networkId}/clients API you can include the "vlan" parameter:

 

e.g. /networks/{networkId}/clients?vlan=10

 

How do I encode multiple values for this parameter?

 

e.g. /networks/{networkId}/clients?vlan=(10 OR 20 OR 30)

or some other way. Is this supported? if so, how?

 

I noticed in the Meraki UI when selecting multiple VLANs to display they use this:

?q=(vlan:10 OR vlan:20 OR vlan:30)

2 Replies 2
LearningIsFun
Getting noticed

The Parameter is listed as string (vs an array), so I'm not sure it's possible.

 

Other options.

1. Run the call again with the other vlan(s) you want.

2. Run the full call without vlan specified and then filter out the data in your script by the Vlans you want to include.  

JHChicago
New here

Yeah I was trying to avoid calling this api for each VLAN cause we have many VLANS

And the reason I'm asking is to be able to exclude some VLANs with excessive client counts.

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.