updating switch port config

Solved
Adrian4
Head in the Cloud

updating switch port config

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
ShawnHu
Meraki Employee
Meraki Employee

5 Replies 5
ShawnHu
Meraki Employee
Meraki Employee

Adrian4
Head in the Cloud

cheers

Adrian4
Head in the Cloud

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.

PhilipDAth
Kind of a big deal
Kind of a big deal

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

PhilipDAth
Kind of a big deal
Kind of a big deal

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

Get notified when there are additional replies to this discussion.