Listing of Deactivation License Token Using API

When you manually deactivate a VM or a feature license or subscription on the firewall, you can now use the PAN-OS XML API to list and view token files.
  • List License Tokens on the Firewall
    Parameters: firewall, key
    To view a a list of license token files on a firewall using the PAN-OS XML API, issue an operational request and include the firewall IP address or domain name along with the API key. Learn how to get started with the PAN-OSXML API.
    Request:
    https://firewall/api/?key=apikey&?type=op&cmd=<show><license-token-files/></show>
    Sample API request for listing license tokens using Curl:
    curl -k -g "https://1.2.3.4/api/?key=1364846455464546846?type=op&cmd=<show><license-token-files/></show>"
    Sample API response:
    <response status="success"> 
    <result> 
    <files> 
    <entry name="dact_lic.12022016.060130.tok"/> 
    <entry name="dact_lic.12282016.070001.tok"/> 
    </files> 
    </result> 
    </response> 
  • View the Contents of a License Token on the Firewall
    Parameters: firewall, key, name
    To view an individual token file on a firewall using the PAN-OS XML API, issue an operational request and include the firewall IP address or domain name, API key, and the name of the specific token file.
    Request:
    https://firewall/api/?key=apikey&?type=op&cmd=<show><license-token-files><name>token_file.tok</name></license-token-files></show>
    Sample API request for showing a license token using Curl:
    curl -k -g "https://1.2.3.4/api/?key=1364846455464546846?type=op&cmd=<show><license-token-files><name>dact_lic.12022016.060130.tok</name></license-token-files></show></operations></request>
    Sample API response:
    <response status="success">
    <result>lFDkWuqqjoNLJPjTaq1r6Tvoe_AtvOMSBpxgUzZPQJ7ZC7I7hz/QLlKLQIuGBa7U~pM027_yfjwjvlIogX1qrXVag/nCUmsuYWTf5zqLn5Rgiulfgz9GNkN6eiRKFbYYQ~KlB2MENu1kKCxgZCUk7Gt/tYjC... 
    <!--TRUNCATED--> 
    </result> 
    </response> 

Related Documentation