Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
SOLVED: Trigger Update Check via API
« previous
next »
Print
Pages: [
1
]
Author
Topic: SOLVED: Trigger Update Check via API (Read 272 times)
0biwan
Newbie
Posts: 1
Karma: 0
SOLVED: Trigger Update Check via API
«
on:
September 07, 2024, 07:00:32 pm »
Solution: I was able to resolve this by configuring cron to run the "firmware update check". I now have this running once an hour, which checks for updates and provides the necessary information I need for monitoring update/upgrade status.
Ultimate Goal: Trigger a check for updates via the API.
I've checked the forums for similar topics, but all of these are marked solved without the solution I am looking for, so posting this.
A GET request via the API to
/api/core/firmware/status
on my secondary firewall returns the following status_msg in the JSON data:
"status_msg":"Firmware status requires to check for update first to provide more information."
On my primary firewall, after using the GUI to manually check for updates, the same query returns the following status_msg:
"status_msg":"There are no updates available on the selected mirror."
I've tried a POST to the same hostname, and
also
a POST to
/api/core/firmware/check
, but it seems none of these will actually trigger an update check.
On my primary firewall, I noticed when manually checking for updates, I'm redirected to
/ui/core/firmware#checkupdates
, I thought sending an API query for
/api/core/firmware#checkupdates
might do the trick, but no luck there.
Is there a way to do this via the API without doing it manually from the GUI?
Thanking the community in advance for any support here.
«
Last Edit: September 11, 2024, 09:32:57 pm by 0biwan
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
SOLVED: Trigger Update Check via API