API get_network_events doesn't filter events like it should

SOLVED
ccicali
Here to help

API get_network_events doesn't filter events like it should

Hello guys,

i'm try to implement the get_network_events API, using parameter:

 
included_event_types = ['client_vpn_connect','client_vpn_disconnect']
 
but the results of the call includes all events....anyone is using this API? Any hint?
 
Below my code (i removed x_cisco_meraki_api_key and network_id values)
 
 
Spoiler
from meraki_sdk.meraki_sdk_client import MerakiSdkClient
from meraki_sdk.exceptions.api_exception import APIException
 
x_cisco_meraki_api_key = ''
networkId = ''

client = MerakiSdkClient(x_cisco_meraki_api_key)
events_controller = client.events

collect = {}

collect['network_id'] = networkId

product_type = 'appliance'
collect['product_type'] = product_type

included_event_types = ['client_vpn_connect','client_vpn_disconnect']
collect['included_event_types[]'] = included_event_types

try:
    result = events_controller.get_network_events(collect)
    print(result)

except APIException as e:
    print(e)
 
1 ACCEPTED SOLUTION
Meraki_John
Meraki Alumni (Retired)
Meraki Alumni (Retired)

Hey ccicali!

 

We are moving from the old Python SDK to the new Python SDK. Originally, we outsourced the SDK creation, but found bugs were introduced and getting changes implemented took ages. So we brought it back in-house, and are about to make the official switch over (which will happen with the documentation,  very soon).

 

We've been advertising it for a while, but just in case, the link is here: https://github.com/meraki/dashboard-api-python

More info/video here: https://www.brighttalk.com/webcast/17628/381496

 

It will make it easier as there is less modules to import; and also we manage it ourselves, much easier/agile to make changes and fix issues. The old version is not going to be maintained going forward, so the new SDK is the one to move to.


The first thing I would try is with the new SDK, and see if this fixes your issue, if not - back to the drawing board! Let us know how it goes.

 

Cheers!
John

View solution in original post

1 REPLY 1
Meraki_John
Meraki Alumni (Retired)
Meraki Alumni (Retired)

Hey ccicali!

 

We are moving from the old Python SDK to the new Python SDK. Originally, we outsourced the SDK creation, but found bugs were introduced and getting changes implemented took ages. So we brought it back in-house, and are about to make the official switch over (which will happen with the documentation,  very soon).

 

We've been advertising it for a while, but just in case, the link is here: https://github.com/meraki/dashboard-api-python

More info/video here: https://www.brighttalk.com/webcast/17628/381496

 

It will make it easier as there is less modules to import; and also we manage it ourselves, much easier/agile to make changes and fix issues. The old version is not going to be maintained going forward, so the new SDK is the one to move to.


The first thing I would try is with the new SDK, and see if this fixes your issue, if not - back to the drawing board! Let us know how it goes.

 

Cheers!
John

Get notified when there are additional replies to this discussion.