cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4442
Views
6
Helpful
5
Replies

updating switch port config

Adrian41
Level 6
Level 6

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!

1 Accepted Solution
5 Replies 5

Adrian41
Level 6
Level 6

cheers

Adrian41
Level 6
Level 6

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.

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

Almost certainly, because of the API rate limit (10 requests/s).

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

ps. Googles Bard (bard.google.com) is very good at writing code using Python and the Meraki API