Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Get Opnsense Version through API
« previous
next »
Print
Pages: [
1
]
Author
Topic: Get Opnsense Version through API (Read 1943 times)
AndyX90
Jr. Member
Posts: 55
Karma: 2
Get Opnsense Version through API
«
on:
September 18, 2019, 06:44:17 pm »
Hey Guys, I am trying to get the version of OPNSense through the API.
Currently I am calling „https://opnsense-ip/api/core/firmware/info“ and extract $.product_version out of the output.
My problem is that I generate thousands of lines with all installed and available packages, changelogs etc. to only extract a string like „19.7.3“.
Maybe someone has an an idea on how to do this without such a big overhead?
THX
Gesendet von iPhone mit Tapatalk
«
Last Edit: September 19, 2019, 08:04:43 am by AndyX90
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Get Opnsense Version through API