Use the type=version request type to show the PAN-OS version for a firewall or Panorama. In addition to the PAN-OS version, this request provides a direct way to obtain the serial number and model number.
Get Version Info (API)
Make a request to the PAN-OS XML API and with type=version along with your API key: https://firewall/api/?type=version&key=apikey
The XML response contains the software version, model, serial number, and whether multi-vsys mode is on: <response status="success"> <result> <sw-version>7.1.0</sw-version> <multi-vsys>off</multi-vsys> <model>pa-vm</model> <serial>007000001222</serial> </result> </response>

Related Documentation