Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
How do I create a schedule using the API?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do I create a schedule using the API? (Read 3731 times)
andreasx23
Newbie
Posts: 1
Karma: 0
How do I create a schedule using the API?
«
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.
Logged
franco
Administrator
Hero Member
Posts: 17653
Karma: 1610
Re: How do I create a schedule using the API?
«
Reply #1 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
Logged
guest18661
Guest
Re: How do I create a schedule using the API?
«
Reply #2 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
How do I create a schedule using the API?