07-20-2023 03:04 AM
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.
07-20-2023 04:41 AM
@Adrian41 Yes, you can. Action batch is designed for this.
https://developer.cisco.com/meraki/api-v1/action-batches-overview/#action-batches
07-20-2023 04:41 AM
@Adrian41 Yes, you can. Action batch is designed for this.
https://developer.cisco.com/meraki/api-v1/action-batches-overview/#action-batches
07-20-2023 04:44 AM
cheers
07-20-2023 04:53 AM
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.
07-20-2023 02:34 PM
Almost certainly, because of the API rate limit (10 requests/s).
07-20-2023 02:35 PM
ps. Googles Bard (bard.google.com) is very good at writing code using Python and the Meraki API
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