11-16-2022 09:21 AM
Hey guys,
Trying to use this API call:
https://developer.cisco.com/meraki/api-v1/#!unbind-network
Need some guidance on how to include the optional retainConfigs: true boolean. I've tried a variety of different formats, all of which are leading to different errors. I'm sure there's a correct way to enter this, I just have no idea what it is.
Here is what I'm currently working with:
dashboard.networks.unbindNetwork(
network_id, { "retainConfigs": True }
)
If someone who's used optional params before could offer some guidance on the correct syntax for this API call, it would be much appreciated. Thank you.
Solved! Go to Solution.
11-16-2022 10:00 AM
Hello @AutomationDude,
You'll want to pass the parameters as illustrated:
dashboard.networks.unbindNetwork(networkId, retainConfigs=True)
11-16-2022 10:00 AM
Hello @AutomationDude,
You'll want to pass the parameters as illustrated:
dashboard.networks.unbindNetwork(networkId, retainConfigs=True)
11-17-2022 04:12 AM
Hey @JasonMo,
I did try that as well, but it results in the following error:
TypeError: unbindNetwork() got an unexpected keyword argument 'retainConfigs'
Any ideas on what I could be doing wrong?
11-17-2022 05:02 AM
Nevermind, I just had to update my SDK. Excuse my stupidity.
11-17-2022 09:57 AM
No worries! Glad you got it working.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide