<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I use API support to pull active license report from Panorama? in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251194#M1866</link>
    <description>&lt;P&gt;This would depend. Are you currently managing your licenses through Panorama? You could confirm whether you see your licenses under Panorama &amp;gt; Device Deployment &amp;gt; Licenses or the "request batch license..." CLI commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are, you'd just do the&lt;/P&gt;&lt;PRE&gt;/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;batch&amp;gt;&amp;lt;license&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/license&amp;gt;&amp;lt;/batch&amp;gt;&amp;lt;/request&amp;gt;&lt;/PRE&gt;&lt;P&gt;but realistically if you had these here, I suspect you'd just view the information in this tab. If the licenses aren't being managed by Panorama, Panorama also has the ability to redirect API calls to the firewalls using the "target=" parameter. This would involved taking an input of the serial numbers of your firewalls (either manually or programmatically using the API call for "show devices connected".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This process is explained a little more in depth in the "Query a Firewall from Panorama" section of the XML API Guide. But essentially, you'd want to iterate over all your serial numbers and do the following call:&lt;/P&gt;&lt;PRE&gt;/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;license&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/license&amp;gt;&amp;lt;/request&amp;gt;&amp;amp;target=XYZ&amp;amp;key=ABC&lt;/PRE&gt;&lt;P&gt;where XYZ was the serial number of an individual firewall and ABC was the API key.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 18:32:06 GMT</pubDate>
    <dc:creator>nigelswift</dc:creator>
    <dc:date>2019-02-25T18:32:06Z</dc:date>
    <item>
      <title>How do I use API support to pull active license report from Panorama?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/250748#M1862</link>
      <description>&lt;P&gt;Is it possible to use the API to pull an active license "report" from Panorama? If so, how would this be done?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 14:55:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/250748#M1862</guid>
      <dc:creator>kdilley</dc:creator>
      <dc:date>2019-02-21T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use API support to pull active license report from Panorama?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251194#M1866</link>
      <description>&lt;P&gt;This would depend. Are you currently managing your licenses through Panorama? You could confirm whether you see your licenses under Panorama &amp;gt; Device Deployment &amp;gt; Licenses or the "request batch license..." CLI commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are, you'd just do the&lt;/P&gt;&lt;PRE&gt;/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;batch&amp;gt;&amp;lt;license&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/license&amp;gt;&amp;lt;/batch&amp;gt;&amp;lt;/request&amp;gt;&lt;/PRE&gt;&lt;P&gt;but realistically if you had these here, I suspect you'd just view the information in this tab. If the licenses aren't being managed by Panorama, Panorama also has the ability to redirect API calls to the firewalls using the "target=" parameter. This would involved taking an input of the serial numbers of your firewalls (either manually or programmatically using the API call for "show devices connected".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This process is explained a little more in depth in the "Query a Firewall from Panorama" section of the XML API Guide. But essentially, you'd want to iterate over all your serial numbers and do the following call:&lt;/P&gt;&lt;PRE&gt;/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;license&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/license&amp;gt;&amp;lt;/request&amp;gt;&amp;amp;target=XYZ&amp;amp;key=ABC&lt;/PRE&gt;&lt;P&gt;where XYZ was the serial number of an individual firewall and ABC was the API key.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 18:32:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251194#M1866</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2019-02-25T18:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use API support to pull active license report from Panorama?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251914#M1867</link>
      <description>&lt;P&gt;Thanks, Could you provide me exact api syntax to use. When i enter&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://&amp;lt;panaroma ip&amp;gt;/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;batch&amp;gt;&amp;lt;license&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/license&amp;gt;&amp;lt;/batch&amp;gt;&amp;lt;/request&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;it results in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:14:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251914#M1867</guid>
      <dc:creator>amarsinghthakur</dc:creator>
      <dc:date>2019-03-01T14:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use API support to pull active license report from Panorama?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251934#M1868</link>
      <description>&lt;P&gt;Are you specifiying the API key? Our XMl API guide is a great resource for building your API calls.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 18:16:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-use-api-support-to-pull-active-license-report-from/m-p/251934#M1868</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2019-03-01T18:16:44Z</dc:date>
    </item>
  </channel>
</rss>

