Can you detect NetBox instance in Event Rules? #20853
Unanswered
Christophoclese
asked this question in
Q&A
Replies: 1 comment
-
|
I like the idea. There is the possibility to add additional headers in the webhook calls though, so at least in my webhook receivers I could easily check those. |
Beta Was this translation helpful? Give feedback.
0 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.
-
I am working on prototyping some Event Rules that would fire Webhooks to our monitoring system to create/enable/disable/remove monitoring for Devices as they are created, updated, and removed, based on the Status of the Device. We also have multiple NetBox environments (dev & prod). Is there any way to detect, at the Event Rule or Webhook level, which instance of NetBox is dispatching the event? Ideally, I am able to deploy the same configuration on both instances, but with conditions defined in the Event Rules that prevent execution in the incorrect environments.
I can see in the default payloads delivered that there are partial URL values for different resources, but you aren't given the base address of the NetBox instance in order to fully recreate the URL. Would it be possible to include the NetBox hostname in this payload and also have it available to the Event Rules Conditions?
Delivered Webhook payload:
Beta Was this translation helpful? Give feedback.
All reactions