Can I call (run) a global function, already set in the router, via API?
I have set a global function (AddWallgardenDeletionScheduler) that takes 2 parameters but when I try to call it from API doesn't seem to find it. (Doesn't give an error - it's as if it was never been set)
From terminal I can call it like this:
$AddWallgardenDeletionScheduler rulename=<name> ruleip=<ip>
from script I can call it like this:
:global AddWallgardenDeletionScheduler
$AddWallgardenDeletionScheduler rulename=<name> ruleip=<ip>
but via API it cannot find it anyway i tried.
Even if I simply set a global variable like
:global myName "Ionas"
it cannot even read it's value by :log warning [$myName] via API
P.S. I can only print the function or variable using /system script environment print
thx!