- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change SSID password for one or multiple networks
Hi All,
I am very new to Dev Ops. I recently installed Postman & imported the collection & environment suggested in Learning Hubs in Cisco.
https://github.com/CiscoDevNet/meraki-code
Currently i have a task in hand to change the SSID password of 1 or multiple networks in the same Org. May you please suggest an API for this task?
- Labels:
-
Dashboard API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The API-call will be always the same. The only difference is, if you issue the command once, or if you iterate through a list of networks and issue the command each time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will want the Psk parameter within this call: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
There are a number of threads, elsewhere in the community, with details of scripts to change PSKs (e.g. this one: https://community.meraki.com/t5/Wireless-LAN/Automated-password-for-Guest-wireless-user/m-p/67536#M1... ) though it looks like they all use v0 of the API. These should still work, BTW, but it is recommended to transition to V1, for lots of great reasons: https://developer.cisco.com/meraki/api-v1/ Has anyone out there done this, yet?
Bear in mind that, if you use a Template, with multiple Meraki WiFi Networks bound to it, changing the PSK once, in the Dashboard UI, will actually change it for all those Networks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you know if there is a way to use the API to change the password of an SSID in a Template? I'm trying to automate it so it happens at the same time on a regular basis rather than requiring someone to log into the Dashboard UI to change the password. I've got the same SSID across a few templates as well so it would be nice to keep them all in sync with each other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @JoshMikow ,
To change the password of an SSID in the Template. You need to first grab the configTemplate ID using (https://developer.cisco.com/meraki/api-v1/#!get-organization-config-templates)
Once you have the template for which you want the SSID password to be changed, fetch the "SSID number" ( https://developer.cisco.com/meraki/api-v1/#!get-network-wireless-ssids )
Use the "SSID number" along with the necessary password parameters and pass them in a PUT request to update it as you need. This would update it for all the networks bound to that particular tempalte
( https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid )
Hope this helps you 🙂
Cheers
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I tried this a few months ago I had received a message that it couldn't be done on a template. These steps look like they'll work out great!
Thank you Craig!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @JoshMikow ,
I just tested this on a template, it worked just fine. If you do get an error let me know 🙂
Cheers,
Craig.
