: Get Version Info (API)
Focus
Focus
Table of Contents

Get Version Info (API)

Use thetype=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.
  1. Make a request to the PAN-OS XML API and withtype=version along with your API key:
    curl -X POST 'https://firewall/api?type=version&key=<apikey>"
  2. Confirm that 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>