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

Solved
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"

 

1 Accepted Solution
mak2018
Getting noticed

This is fixed and this is the correct syntax if anyone cares to get EAP success log entries when you have both switches and APs in a single network:

 

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

View solution in original post

3 Replies 3
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

 

mak2018
Getting noticed

This is fixed and this is the correct syntax if anyone cares to get EAP success log entries when you have both switches and APs in a single network:

 

https://api.meraki.com/api/v1/networks/<network_id>/events?productType=wireless&perPage=1000&includedEventTypes[]=8021x_eap_success
Get notified when there are additional replies to this discussion.