OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: andreasx23 on September 17, 2020, 10:12:20 am

Title: How do I create a schedule using the API?
Post by: andreasx23 on September 17, 2020, 10:12:20 am
How do I create a schedule using the API? I've been searching through the documentation but I cant seem to find what I'm looking for.
Title: Re: How do I create a schedule using the API?
Post by: franco on September 17, 2020, 10:30:08 am
You can "schedule" rules by enabling/disabling them via API using the supplementary firewall API plugin.

There is, however, no API for the currently static rule schedule pages.


Cheers,
Franco
Title: Re: How do I create a schedule using the API?
Post by: guest18661 on November 03, 2020, 03:20:28 am
I was going to try and setup a schedule to turn on and off a particular NAT rule. I've been looking through the docs and I got stuck pretty quick. The docs talk about an api key and secret. I can't find anything related to that on my system in the gui or by searching for an apikey.txt in the shell using find.

Am I missing something obvious somewhere? I installed the os-firewall supplemental api package, but I don't know what it actually installed or if there is some interface or setup needed for it.

Can someone smack me with a clue-by-four. TIA