How do I assign an IP and tag to a virtual machine using the rest API? #13906
Replies: 2 comments
-
This will likely need to be a multi-step process. Here's an untested example based on NetBox v3.5.7:
The end result is a VM with an interface, the interface with the IP address associated with it, and the VM lists the IP address as the primary IP address. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Following atownson's guide worked! There is simply not a way to assign an IP address when creating a vm, assigning the IP must be iterative. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reviewing the swagger page, it seems like the following should work:
However all I ever get back is:
Expecting value: line 3 column 1 (char 2)
What is it missing? primary_ip4 should just be the numeric identifier for the IP address right?
Beta Was this translation helpful? Give feedback.
All reactions