Creating an interface and assigning it an ip address without knowing the interface id #19603
Unanswered
P3TP0
asked this question in
Help Wanted!
Replies: 1 comment
-
Hi there! I'm curious — did you check the response of the API call when you create the interface? Typically, the API returns |
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.
-
I create an interface with a single query, which I set a name for and assign it to a VM. And with the second request, I want to assign an ip address to this interface without knowing its id.
I need this because I do it through Ansible and when there are hundreds of different hosts in the list, I don't want to go and manually look at the ID of each interface and hardcode it all into ansible tasks.
Is there any way to assign an ip address to an interface by the name (not the id) of the VM or by some other parameter?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions