03-08-2024 11:10 AM
Hi Community.
Someone has a scrypt to do a massive configuration of VLANS in meraki switches by API, I have the scrypt to do it one by one but I need to make several and I don't know much about programming.
03-09-2024 03:55 AM
I am not sure if this approach is really a good idea ...
But if you have a working script for one VLAN, make a copy/paste of that call and adjust the parameters.
The more efficient way would be to have a csv file with all parameters and loop through the lines of this file.
03-09-2024 04:35 AM
The 'best' way to do it will depend on exact details/context.
I suggest look at switch templates and port profiles to see if using them would solve all/part of what you want to do...
https://documentation.meraki.com/MS/Port_and_VLAN_Configuration/Switch_Port_Profiles
The API can also be used with these.
Within the API, action batches a possible way to be more efficient when making a lot of changes...
https://developer.cisco.com/meraki/api-v1/action-batches-overview/
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