Skip to content
Discussion options

You must be logged in to vote

open a nbshell in a terminal do a
lsmodels

That will output which netbox objects are available to query.

For me (having the config diff plugin installed) I get a section with the netbox config diff plugin objects like so:

NetBox Config Diff Plugin: netbox_config_diff.ConfigCompliance netbox_config_diff.ConfigurationRequest netbox_config_diff.PlatformSetting netbox_config_diff.Substitute

you can test your query in nbshell first (which I recommend).

You can do something like:

netbox_config_diff.ConfigCompliance.objects.all() to get all objects
netbox_config_diff.ConfigCompliance.objects.get(id=<something>) or
netbox_config_diff.ConfigCompliance.objects.filter(<some expression>) to filter f…

Replies: 1 comment 1 reply

Comment options

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

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