- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Override Network's PSK from its template by using API
Hi all, I'm currently trying to change my network PSK by overriding from its binded template. I've tried this https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid but the return is 'Authentication mode is not a valid SSID override option.'.
Is this even possible?
Thank you in advance.
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@rajiw017 I was able to do it via Postman.
I first tried with the bare minimum value of just the psk. It gave the "Authentication mode is not a valid SSID override option" error. I then added " "authMode": "psk" and the error changed to "Pre-shared key mode requires a valid encryption mode". So, last I added ""encryptionMode": "wpa" and that allowed the PUT to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error sounds like you're trying to change the auth type and not just the PSK. What exactly are you sending in the API call? Can you paste it here (minus a PSK for privacy)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear rymiles, thank you for your reply
the response when I requested for 'get'
{'number': 0, 'name': 'SSIDSSIDSSID', 'enabled': True, 'splashPage': 'None', 'ssidAdminAccessible': False, 'authMode': 'psk', 'psk': 'sssssssssss', 'dot11w': {'enabled': False, 'required': False}, 'dot11r': {'enabled': False, 'adaptive': False}, 'encryptionMode': 'wpa', 'wpaEncryptionMode': 'WPA2 only', 'ipAssignmentMode': 'NAT mode', 'adultContentFilteringEnabled': False, 'dnsRewrite': {'enabled': False, 'dnsCustomNameservers': []}, 'minBitrate': 11, 'bandSelection': 'Dual band operation', 'perClientBandwidthLimitUp': 0, 'perClientBandwidthLimitDown': 0, 'perSsidBandwidthLimitUp': 0, 'perSsidBandwidthLimitDown': 0, 'mandatoryDhcpEnabled': False, 'visible': True, 'availableOnAllAps': True, 'availabilityTags': []}
the response when I requested for 'put' with data={"psk": 'testtest'}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
network_id = 'L_123123123'
number = '0' ##number off ssid##
response = dashboard.wireless.updateNetworkWirelessSsid(
network_id, number,
name='NAMEOFSSID',
enabled=True,
psk='HerePSK'
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ww, thank you for your reply.
I already did your suggestion using python, here some snippet of my code:
<Response [400]>
{'errors': ['Authentication mode is not a valid SSID override option.']}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure you are using the template network id? You have seen the error before
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear ww, thanks for your reply,
This is a different case. I'm trying to do like this one.
I'm trying to override Network's PSK from its template. Is this even possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@rajiw017 I was able to do it via Postman.
I first tried with the bare minimum value of just the psk. It gave the "Authentication mode is not a valid SSID override option" error. I then added " "authMode": "psk" and the error changed to "Pre-shared key mode requires a valid encryption mode". So, last I added ""encryptionMode": "wpa" and that allowed the PUT to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi rymiles,
it works! thank you very much!!!
