Skip to content
Discussion options

You must be logged in to vote

https://netbox.example.com/api/virtualization/virtual-machines/ is the resource for "all virtual machines"

https://netbox.example.com/api/virtualization/virtual-machines/?name=playground01 is the resource for "all virtual machines", filtered to a subset of zero or more. It doesn't matter if it happens to be exactly one.

In order to PATCH a VM you need to use the resource for an individual VM, identified by its database ID:
https://netbox.example.com/api/virtualization/virtual-machines/NNN/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tacerus
Comment options

Answer selected by tacerus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants