Replies: 5 comments 18 replies
-
Look under "Background tasks". "Job results" are for scripts and reports. Otherwise: is the webhook enabled? What Netbox version? Do you have netbox-rq running? It works for me. Tested with Netbox 3.0.7:
Now create a site:
Now look at webhook status: |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. Now i see what i'm missing. Menu choice "Background jobs" is only available when i'm on netbox administration home screen. If i go to webhooks, option is not there. Another question...is secret field used to authenticate against target server or do i put that info in header section? |
Beta Was this translation helpful? Give feedback.
-
It's documented here:
That is, in your webserver you can calculate a HMAC(secret key, request body) and check that it matches the X-Hook-Signature header. If it doesn't match, the request is not authentic. Here is some sample code. If you only want to provide a static password, then it can go in "additional headers". In that case, you really want to make sure the connection is protected via TLS (i.e. the target provides a HTTPS URL, with a valid certificate) |
Beta Was this translation helpful? Give feedback.
-
I would like to continue with another question instead of starting new thread. One thing i dont get yet is accessing data context that is "two levels deep" for instance region of a site. How would i do that? |
Beta Was this translation helpful? Give feedback.
-
I tried to start nbshell but with no success. Getting Django missing module error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to learn how to use webhooks and i have created one as simple as possible, no body, basically just url and type create on dcim > site
When i create a site shouldn't i be able to see something under job results? i have nothing.
Dokumentation states following webhook events are being placed into the queue (visible under the NetBox admin UI)
Beta Was this translation helpful? Give feedback.
All reactions