Hey Denis,
Lot of water under the bridge since then :-D. I don't remember exactly what I did, and I have deleted (By accident) the old script. But from what I can remember, I managed to get the Python code to read a comma separated Excel sheet, and add the VLANs one by one using loops. It was not fast, but compared to doing it via the dashboard, it was blazing fast 😄 😄
I have not seen any being able to creating multiple VLANs in one go, even on the same device. Maybe it can be done, but I don't see how, actually, as there are no 'bulk' VLAN creation in the API, as far as I know.
BTW: I will do it in another way today, as back then I was using JSON to contact the API. Today I have installed a Meraki library, and calls that when I what to use the Meraki API. Much easier, and I do not have to keep track when Meraki updates their API. I am using this right now, but there are others:
https://github.com/meraki/dashboard-api-python
I have been looking at this: https://github.com/meraki/meraki-python-sdk, which have a build in function allowing it not to flood the API, and thus avoid your script from failing if you get to busy; i.e. making to many calls per sec. From the tests my colleague have made, it is also a little bit faster to use again maybe because it is not flooding the API.
I was creating a lot of VLANs on a MX, and I must warn you: When you reach a certain number of VLANs on the MX, the dashboard and the browser becomes very slow; i.e. very long response times. I don't know what exactly is going on, but I think it is because the browser tries to load all the information at once, and that takes time. Mind you I created more than 300 VLAN interfaces on the MX, and maybe you will create less so you will not have that problem. It is running fine, with DHCP and all; it is just the webpage that loads slowly.
Br
Kruse