11-03-2022 11:55 AM
Hi,
I need to update the dot11r settings for my network.
The code I used to update the settings are:
response = dashboard.wireless.updateNetworkWirelessSsid(
n['id'], ssid['number'],
ssid['dot11r']= {'enabled': True, 'adaptive': True}
)
Python error message is
Traceback (most recent call last):
File "/home/user/updatessid.py", line 31, in <module>
response = dashboard.wireless.updateNetworkWirelessSsid(
TypeError: Wireless.updateNetworkWirelessSsid() takes 3 positional arguments but 4 were given
I tried to follow the example here
https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
response = dashboard.wireless.updateNetworkWirelessSsid(
network_id, number,
name='My SSID',
enabled=True
)What is the correct way to update the dot11r settings?
Solved! Go to Solution.
11-03-2022 12:15 PM
import requests
url = "https://api.meraki.com/api/v1/networks/{networkId}/wireless/ssids/{number}"
payload = '''{
"dot11w": {},
"dot11r": { "adaptive": true },
"oauth": {},
"localRadius": {
"passwordAuthentication": {},
"certificateAuthentication": {
"clientRootCaCertificate": {}
}
},
11-03-2022 12:05 PM
I think that there is no PAI to update 802.11, look:
https://developer.cisco.com/meraki/api/#!update-network-ssid
11-03-2022 12:08 PM
Sorry I'm worng:
https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
11-03-2022 12:09 PM
11-03-2022 12:09 PM
https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
what's different between your link and mine?
Not supported?
11-03-2022 12:10 PM
the first link is API v0 second Is v1.
11-03-2022 12:10 PM
I tried again with new code.
response = dashboard.wireless.updateNetworkWirelessSsid(
n['id'], ssid['number'],
dot11r=[{'enabled': True, 'adaptive': True}]
)
Here is what I got.
meraki.exceptions.APIError: wireless, updateNetworkWirelessSsid - 400 Bad Request, {'errors': ["'dot11r' must be an object"]}
11-03-2022 12:15 PM
import requests
url = "https://api.meraki.com/api/v1/networks/{networkId}/wireless/ssids/{number}"
payload = '''{
"dot11w": {},
"dot11r": { "adaptive": true },
"oauth": {},
"localRadius": {
"passwordAuthentication": {},
"certificateAuthentication": {
"clientRootCaCertificate": {}
}
},
11-06-2022 03:47 AM
Thank you!
11-03-2022 12:23 PM
Got it workinig with following code.
response = dashboard.wireless.updateNetworkWirelessSsid(
n['id'], ssid['number'],
dot11r={'enabled': True, 'adaptive': True}
)
Thank you!
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