Get Opnsense Version through API

Started by AndyX90, September 18, 2019, 06:44:17 PM

Previous topic - Next topic
September 18, 2019, 06:44:17 PM Last Edit: September 19, 2019, 08:04:43 AM by AndyX90
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