Hello,
I am building an python app that backups and restores switch port configs and the backup part is done.
Doing the restore however, I just wanted to confirm - do I have to do a separate API call for each and every port?!?
Or can I nest the body dictionary for each port in one parent dictionary and do them all in one call?
https://developer.cisco.com/meraki/api-v1/update-device-switch-port/
Thanks!
Solved! Go to solution.
@Adrian4 Yes, you can. Action batch is designed for this.
https://developer.cisco.com/meraki/api-v1/action-batches-overview/#action-batches
@Adrian4 Yes, you can. Action batch is designed for this.
https://developer.cisco.com/meraki/api-v1/action-batches-overview/#action-batches
cheers
follow up question - would a batch request run faster than lots of individual requests? Im not sure if the time it takes to run lots of individual requests is mostly because of the request transit time or the actual processing time.
Almost certainly, because of the API rate limit (10 requests/s).
ps. Googles Bard (bard.google.com) is very good at writing code using Python and the Meraki API