Where to find examples of using API to update objects? #5850
-
I need to update massive amounts of front_ports. If the import CSV would do updates for existing objects I'd be good, but it looks like I need to use the API for this. Are there any examples around of scripts that do this? And yes, I did RTFM...I just need some examples to go by. Is pynetbox the way to go on this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I haven't worked with ports with pynetbox but here are some examples of using it anyway: |
Beta Was this translation helpful? Give feedback.
-
This is a snippit from the code I use to deploy ports. Granted, I'm lazilly doing this one port at a time and, at least for me, pynetbox seems to be the way to go.
|
Beta Was this translation helpful? Give feedback.
-
pynetbox is for sure the way to go for updating. It's quick and easy.
|
Beta Was this translation helpful? Give feedback.
pynetbox is for sure the way to go for updating. It's quick and easy.
nb_interface.save()