OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: AndyX90 on September 18, 2019, 06:44:17 PM

Title: Get Opnsense Version through API
Post by: AndyX90 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