Skip to content
Discussion options

You must be logged in to vote
>>> nb.virtualization.clusters.get(name="nuc-ganeti").id
3
>>> list(nb.dcim.devices.filter(cluster_id=3))
[nuc1, nuc2]

The REST API filtering is less powerful than the Django filtering, e.g. you can't do cluster__name="nuc-ganeti" (and such unimplemented query parameters are silently ignored)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by shanmugara
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