-
|
Hello. I'm writing a few custom scripts for our netbox instance. Though the official documentation is not very verbose on this part.
Would be nice if someone knows the answers. |
Beta Was this translation helpful? Give feedback.
Answered by
mburggraf
Mar 15, 2026
Replies: 1 comment
-
|
A few days later, and I'm basically able to answer my own questions. 🤣
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mrmrcoleman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A few days later, and I'm basically able to answer my own questions. 🤣
So in case anyone else stumbles upon this thread, here what I found out:
{"run_by": "event_rule"}the script can check for this variable.
With the REST-API it's also possible to add additional fields, so we can check this as well. (Though running the script from CLI with
./manage.py runscriptwill remove any unknown variable!) The thing is: When scheduling the task to repeat regularly via REST-API, the tasks w…