I wanted to configure the entire Network using scripts. We have clients which we are providing services through Meraki Network. Intent is, if we ask client to give few basic requirements mentioned below. Can we create a automatic script which communicate with Meraki Devices using API's and dashboard has been automatically configured.
If we have two MX device, MS device and MR AP's and all details like
1. WAN IP's for uplink configuration.
2.MX IP's, VLAN Information,
3.DHCP Server IP for relay agent.
4.Firewall rules can be copied from some template or we can create a file for Firewal rules.
5. Firewall Polcy configuration from template.
I would actually love to see if that works. I haven't messed much with API's but would love to know if it works out for you. I will stay posted to this thread.
Yes. You use the provisioning APIs.
A long time ago I wrote a script that can backup and restore Meraki organisations offline. The restore script is actually a Python script you can just edit and run.
So if you wanted to get started you could set it up how you want, run the backup script, and then start with the restore script to form the basis of what you want going forward.
Have a look at the dashboard api:
I think it can handle all of your points.
Keep in mind that this means that the devices should have cloud connectivity at the start of the deployment (via dhcp) ... and keep it throughout the script too. If they lose connectivity during one of the steps they will roll back to the last safe configuration. When restricting vlans on trunks this can cause issues so the order of the steps is important.
So thoroughly test your script before rollout.