calling custom field in a custom script. #13588
-
I added a custom field in Netbox via the web.
I am trying to pull this custom field data in using python, I can get the zone, view, records info but just not this one.
I'm sure its simple but just can't figure this out. Is there a module like : Currently I have this script that works to display: Zone, records and view name: `#!/usr/bin/env python3 from pathlib import Path
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
(assuming that this plugin model has been defined to permit custom fields) In this case, the content of custom_field_data would look like |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
custom_field_data
is a single JSON object containing all custom fields. So there's no need to filter on it:(assuming that this plugin model has been defined to permit custom fields)
In this case, the content of custom_field_data would look like
{"testing":"A"}