Extend the default object representation to include the "full" representation of related objects in webhook body #9841

Open
opened 2025-12-29 21:23:27 +01:00 by adam · 2 comments
Owner

Originally created by @FloMeyer on GitHub (Jun 13, 2024).

NetBox version

v4.0.5

Feature type

Data model extension

Proposed functionality

As discussed but may be forgotten in https://github.com/netbox-community/netbox/issues/9594 I would like ask you to implement a full representation of related objects in the webhook body or at least device_role.

Use case

If you update an interface i would like to fire a webhook. But only if the interface belongs to a device with a specific device_role - this should be filtered via webhook condition.

Database changes

No response

External dependencies

No response

Originally created by @FloMeyer on GitHub (Jun 13, 2024). ### NetBox version v4.0.5 ### Feature type Data model extension ### Proposed functionality As discussed but may be forgotten in https://github.com/netbox-community/netbox/issues/9594 I would like ask you to implement a full representation of related objects in the webhook body or at least device_role. ### Use case If you update an interface i would like to fire a webhook. But only if the interface belongs to a device with a specific device_role - this should be filtered via webhook condition. ### Database changes _No response_ ### External dependencies _No response_
Author
Owner

@crytectobi commented on GitHub (Aug 8, 2024):

Hi,

I have the very same use case. I'm from the network department and try to automate interface configuration of network devices.
I would like to check the device role to trigger only for network devices (e.g. device role network-access-switch, router, etc.).
But Netbox is used by all IT departments, and my automation would trigger from all devices.
Only solutions would be to tag every single interface, but that is more a workaround and makes zero sense outside of this trigger condition.
So this feature would be very much appreciated for automation. :)

@crytectobi commented on GitHub (Aug 8, 2024): Hi, I have the very same use case. I'm from the network department and try to automate interface configuration of network devices. I would like to check the device role to trigger only for network devices (e.g. device role network-access-switch, router, etc.). But Netbox is used by all IT departments, and my automation would trigger from all devices. Only solutions would be to tag every single interface, but that is more a workaround and makes zero sense outside of this trigger condition. So this feature would be very much appreciated for automation. :)
Author
Owner

@github-actions[bot] commented on GitHub (Apr 25, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Apr 25, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9841