API documentation, am I doing something wrong? #7433
-
Hi All, We're currently running NetBox 2.11.12 and I was wondering if the following is intended behavior for the api. I have 2 clusters defined, one name "oVirt" and the other "test". In both clusters I have a virtual machine named
But the response is: {
"cluster": [
"Select a valid choice. That choice is not one of the available choices."
]
} If I do the request:
Where So my question is: "Is it correct that the Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like the |
Beta Was this translation helpful? Give feedback.
It looks like the
cluster
field was added to the filter set for the VirtualMachine model in error. Typically, you would use e.g.site_id=1
orsite=foo
to filter by a related object, where the later specifies an object by its unique slug (human-friendly name). However, the Cluster model doesn't have a slug, so this doesn't apply.