Added C9300-M to network and now long running API call is failing with "productType is required"

mak2018
Getting noticed

Added C9300-M to network and now long running API call is failing with "productType is required"

As stated this is the call worked up until we added 2 C9300-Ms to the network in question.   Previously it was all APs.  Now it returns with an error ProductType is required but I don't know what I am supposed to update the call to for event logs specific to access points. 

 

https://api.meraki.com/api/v1/networks/L_609111849601866880/events?perPage=1000&includedEventTypes[]=8021x_eap_success

   "errors": [
        "productType is required"

 

2 Replies 2
mak2018
Getting noticed

I answered my own question, so for any Meraki network that has more than 1 device you need to specify the productType like so:

https://api.meraki.com/api/v1/networks/<networkid>/devices?productType=wireless/.....
mak2018
Getting noticed

I lied, that API call is not the same.  Can anyone help me with the right syntax as it seems adding switches breaks the canned API calls somehow or someway.

 

I need this command to work against a network that is managing switches along with APs:

 

https://api.meraki.com/api/v1/networks/<networkid>/events?perPage=1000&includedEventTypes[]=8021x_eap_success

 

When I run it like so it doesn't return any event logs and only returns the devices in that network (APs and switches):

 

https://api.meraki.com/api/v1/networks/<networkid>/devices?productType=wireless/events?perPage=1000&includedEventTypes[]=8021x_eap_success

 

Get notified when there are additional replies to this discussion.