cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7073
Views
2
Helpful
3
Replies

How to pass array for includedEventTypes

mjbuemi91
Level 1
Level 1

Not quite sure how to do this, I would like to specifiy "vrrp" and "dhcp" as the included event types. I would have thought that this is correct, but it returns nothing, as if it's interpreting it as the string literal 'vrrp,dhcp':

{{API}}/networks/{{netID}}/events?includedEventTypes[]=vrrp,dhcp&productType=appliance

If I try the following instead, it applies the last filter only (dhcp):

{{API}}/networks/{{netID}}/events?includedEventTypes[]=vrrp&productType=appliance&includedEventTypes[]=dhcp

I also tried moving the productType to the end, and including it after each event type, just in case it mattered.

I have verified that both vrrp and dhcp return events when specified alone.

1 Accepted Solution

Accepted Solutions

Shiyue Cheng
Cisco Employee
Cisco Employee

Your second request there has the correct format (the positions of the parameters do not matter), but you may need to also include perPage so you do not miss any events of a second category that are on a different page.

This works for me:

https://n7.meraki.com/api/v1/networks/L_566890603095268587/events?includedEventTypes[]=vrrp&productType=appliance&includedEventTypes[]=dhcp&perPage=1000
image.png

Solutions Architect @ Cisco Meraki | API & Developer Ecosystem

View solution in original post

3 Replies 3

Shiyue Cheng
Cisco Employee
Cisco Employee

Your second request there has the correct format (the positions of the parameters do not matter), but you may need to also include perPage so you do not miss any events of a second category that are on a different page.

This works for me:

https://n7.meraki.com/api/v1/networks/L_566890603095268587/events?includedEventTypes[]=vrrp&productType=appliance&includedEventTypes[]=dhcp&perPage=1000
image.png

Solutions Architect @ Cisco Meraki | API & Developer Ecosystem

Yep, that was it, I forgot about the pagination. Thanks!

Thank you 🤙