Netbox VM Object can`t set device to null or empty #1501
Unanswered
SchmidtJonathan1
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello,
I’m using Ansible to automate NetBox virtual machine objects. Now I have a use case where I want to remove the device assignment from a VM object. When I set the device parameter value to null, the device field remains unchanged on the object.
I’ve already tested this with the REST API using a PATCH request, and it works correctly with null.
Has anyone found a solution for this scenario?
I noticed that when the object already exists, its current value seems to overwrite my input, and I end up with an “OK” state without the desired change.
Example:
Input 1:
Output 1:
Input device value null:
Output:
Beta Was this translation helpful? Give feedback.
All reactions