Report fields #9446
Unanswered
robbagithub
asked this question in
Q&A
Report fields
#9446
Replies: 1 comment 3 replies
-
With reports you can call Device.objects or DeviceRole.objects or DeviceType.objects depending on what suits your task best in your python code with filter() to limit what you want to get or exclude() for what you want to avoid. |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hi,
I'm trying to write some reports and I'm having difficulty finding somewhere that shows me the options that exist to call or enquire about the object properties.
For example I'm looking at the device racking report and want to prevent it from reporting on PDUs, but I'm not sure how I go about referencing that property.
I've looked at the API links but I don't see where this detail would be.
I went poking through the model files on /lfs/global/apps/netbox/netbox/dcim/models but it seems a difficult place to list all the options.
Any help gratefully received.
Regards,
Rob.
Beta Was this translation helpful? Give feedback.
All reactions