GraphQL IPAddress asssigned_object #8860

Closed
opened 2025-12-29 20:42:16 +01:00 by adam · 0 comments
Owner

Originally created by @rowco on GitHub (Nov 21, 2023).

NetBox version

v3.6.0

Python version

3.8

Steps to Reproduce

Using a graphql I'd like to be able to fetch the name of the assigned interface, but my only option is '__typename'.

{ device_list { primary_ip4 { class_type assigned_object { __typename } } } }

Expected Behavior

Option to retrieve the name of assigned object.

Observed Behavior

{ "data": { "device_list": [ { "primary_ip4": { "class_type": "IPAddress", "assigned_object": { "__typename": "InterfaceType" } } } ] } }

Originally created by @rowco on GitHub (Nov 21, 2023). ### NetBox version v3.6.0 ### Python version 3.8 ### Steps to Reproduce Using a graphql I'd like to be able to fetch the name of the assigned interface, but my only option is '__typename'. `{ device_list { primary_ip4 { class_type assigned_object { __typename } } } }` ### Expected Behavior Option to retrieve the name of assigned object. ### Observed Behavior `{ "data": { "device_list": [ { "primary_ip4": { "class_type": "IPAddress", "assigned_object": { "__typename": "InterfaceType" } } } ] } }`
adam closed this issue 2025-12-29 20:42:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8860