API Call - Update-the-attributes-of-an-mr-ssid
So, I'm playing around with the API for updating a SSID. Using Python 3.9.4 and the latest Meraki module version.
The bottom API call works fine, with just changing the SSID name and if the SSID is enabled or not.
BUT, when I try to update other attributes (in the top API call), I get errors about syntax.
Am I missing something here? And help would be appreciated.
Solved! Go to solution.
You seem to be getting your self mixed up with Python lists and passing values directly
Try
update=dashboard.wireless.updateNetworkWirelessSsid(targetNet, 0, name='Test SSID', enabled=True, encryptionMode= 'wpa', wpaEncryptionMode= 'WPA2 only',psk= 'NewPassword!')
At first glance Psk requires an encryption mode ...
And an actual PSK....
What @TBHPTL said makes a lot of sense.
You could configure the 'test ssid' from your dashboard like you want and then do a 'get' to get the desired parameters. Might be faster than trial and error.
The "getNetworkWirelessSsid" command pulls all the info and attributes from the SSID on that network.
And if try to add the various other PSK attributes, I still get the same error.
Just very odd that the Python API is only letting me update the SSID name and status, and no other attributes or properties.
Hi,
Pls try this,
updates = dashboard.wireless.updateNetworkWirelessSsid (net['id'], '0', name="Test SSID", enabled=True, authMode="psk")
You seem to be getting your self mixed up with Python lists and passing values directly
Try
update=dashboard.wireless.updateNetworkWirelessSsid(targetNet, 0, name='Test SSID', enabled=True, encryptionMode= 'wpa', wpaEncryptionMode= 'WPA2 only',psk= 'NewPassword!')