<?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 to get Applications using XML API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280629#M75865</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94882"&gt;@FredWiest&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/predefined/application/entry[@name='icmp']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is a perfectly valid API call and will respond with the following XML response. What is the response actually telling you when you make the call? Are you actually authenticated?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;response status="success" code="19"&amp;gt;
&amp;lt;result total-count="1" count="1"&amp;gt;
&amp;lt;entry id="1" name="icmp" ori_country="USA" ori_language="English"&amp;gt;
&amp;lt;category&amp;gt;networking&amp;lt;/category&amp;gt;
&amp;lt;subcategory&amp;gt;ip-protocol&amp;lt;/subcategory&amp;gt;
&amp;lt;technology&amp;gt;network-protocol&amp;lt;/technology&amp;gt;
&amp;lt;evasive-behavior&amp;gt;no&amp;lt;/evasive-behavior&amp;gt;
&amp;lt;consume-big-bandwidth&amp;gt;no&amp;lt;/consume-big-bandwidth&amp;gt;
&amp;lt;used-by-malware&amp;gt;yes&amp;lt;/used-by-malware&amp;gt;
&amp;lt;able-to-transfer-file&amp;gt;no&amp;lt;/able-to-transfer-file&amp;gt;
&amp;lt;has-known-vulnerability&amp;gt;yes&amp;lt;/has-known-vulnerability&amp;gt;
&amp;lt;tunnel-other-application minver="3.0.0"&amp;gt;yes&amp;lt;/tunnel-other-application&amp;gt;
&amp;lt;prone-to-misuse&amp;gt;no&amp;lt;/prone-to-misuse&amp;gt;
&amp;lt;pervasive-use&amp;gt;yes&amp;lt;/pervasive-use&amp;gt;
&amp;lt;decode minver="3.0.0"&amp;gt;icmp&amp;lt;/decode&amp;gt;
&amp;lt;references&amp;gt;
&amp;lt;entry name="Wikipedia"&amp;gt;
&amp;lt;link&amp;gt;
http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
&amp;lt;/link&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;/references&amp;gt;
&amp;lt;default&amp;gt;
&amp;lt;ident-by-ip-protocol&amp;gt;1&amp;lt;/ident-by-ip-protocol&amp;gt;
&amp;lt;/default&amp;gt;
&amp;lt;tunnel-applications minver="3.0.0"&amp;gt;
&amp;lt;member minver="3.0.0"&amp;gt;ping&amp;lt;/member&amp;gt;
&amp;lt;/tunnel-applications&amp;gt;
&amp;lt;risk&amp;gt;4&amp;lt;/risk&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Aug 2019 20:28:37 GMT</pubDate>
    <dc:creator>BPry</dc:creator>
    <dc:date>2019-08-01T20:28:37Z</dc:date>
    <item>
      <title>How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280587#M75864</link>
      <description>&lt;P&gt;I am trying to get a list of applications, or a single application using the XML API. I have tried the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/shared/application&lt;/P&gt;&lt;P&gt;api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/shared/application/entry[@name='icmp']&lt;/P&gt;&lt;P&gt;api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/predefined/application/entry[@name='icmp']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;None of these work. What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 18:06:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280587#M75864</guid>
      <dc:creator>FredWiest</dc:creator>
      <dc:date>2019-08-01T18:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280629#M75865</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94882"&gt;@FredWiest&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/predefined/application/entry[@name='icmp']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is a perfectly valid API call and will respond with the following XML response. What is the response actually telling you when you make the call? Are you actually authenticated?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;response status="success" code="19"&amp;gt;
&amp;lt;result total-count="1" count="1"&amp;gt;
&amp;lt;entry id="1" name="icmp" ori_country="USA" ori_language="English"&amp;gt;
&amp;lt;category&amp;gt;networking&amp;lt;/category&amp;gt;
&amp;lt;subcategory&amp;gt;ip-protocol&amp;lt;/subcategory&amp;gt;
&amp;lt;technology&amp;gt;network-protocol&amp;lt;/technology&amp;gt;
&amp;lt;evasive-behavior&amp;gt;no&amp;lt;/evasive-behavior&amp;gt;
&amp;lt;consume-big-bandwidth&amp;gt;no&amp;lt;/consume-big-bandwidth&amp;gt;
&amp;lt;used-by-malware&amp;gt;yes&amp;lt;/used-by-malware&amp;gt;
&amp;lt;able-to-transfer-file&amp;gt;no&amp;lt;/able-to-transfer-file&amp;gt;
&amp;lt;has-known-vulnerability&amp;gt;yes&amp;lt;/has-known-vulnerability&amp;gt;
&amp;lt;tunnel-other-application minver="3.0.0"&amp;gt;yes&amp;lt;/tunnel-other-application&amp;gt;
&amp;lt;prone-to-misuse&amp;gt;no&amp;lt;/prone-to-misuse&amp;gt;
&amp;lt;pervasive-use&amp;gt;yes&amp;lt;/pervasive-use&amp;gt;
&amp;lt;decode minver="3.0.0"&amp;gt;icmp&amp;lt;/decode&amp;gt;
&amp;lt;references&amp;gt;
&amp;lt;entry name="Wikipedia"&amp;gt;
&amp;lt;link&amp;gt;
http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
&amp;lt;/link&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;/references&amp;gt;
&amp;lt;default&amp;gt;
&amp;lt;ident-by-ip-protocol&amp;gt;1&amp;lt;/ident-by-ip-protocol&amp;gt;
&amp;lt;/default&amp;gt;
&amp;lt;tunnel-applications minver="3.0.0"&amp;gt;
&amp;lt;member minver="3.0.0"&amp;gt;ping&amp;lt;/member&amp;gt;
&amp;lt;/tunnel-applications&amp;gt;
&amp;lt;risk&amp;gt;4&amp;lt;/risk&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Aug 2019 20:28:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280629#M75865</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-08-01T20:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280638#M75867</link>
      <description>&lt;P&gt;Well, thats interesting... it now works for me, so I'm not sure what I did wrong. What I am trying to do is get or edit the Tags attribute, but I don't see Tags in the returned XML. I'm guessing that the Application data is in the config/predefined since we can't change it, but maybe the Tags attribute is in the config/shared data? Do you know where I can find that?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 21:39:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280638#M75867</guid>
      <dc:creator>FredWiest</dc:creator>
      <dc:date>2019-08-01T21:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280869#M75884</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94882"&gt;@FredWiest&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Totally different element in the configuration. Tags are actually present under &amp;lt;application-tag&amp;gt; instead of &amp;lt;application&amp;gt;. So the API request to show tags for icmp would be the following:&lt;/P&gt;&lt;PRE&gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/application-tag/entry[@name='icmp']&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Aug 2019 17:28:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280869#M75884</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-08-02T17:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280961#M75896</link>
      <description>&lt;P&gt;When I used the command you gave above I get "&amp;lt;response status="success" code="7"&amp;gt;&amp;lt;result /&amp;gt;&amp;lt;/response&amp;gt;". My firewall is 8.0.13.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am trying to change it on a Panorama, wouldn't I need something like "api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/devices/application-tag/entry[@name='icmp']"? That fails with the same message&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 22:15:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/280961#M75896</guid>
      <dc:creator>FredWiest</dc:creator>
      <dc:date>2019-08-02T22:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/281000#M75903</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94882"&gt;@FredWiest&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can utilize the API browser to figure out the exact command that you would need to utilize, the example that I gave you was off of a firewall not Panorama.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 02:27:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/281000#M75903</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-08-05T02:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/281181#M75923</link>
      <description>&lt;P&gt;Thank you for the reply. The problem is that I can't find any reference to application-tag in the API browser. I have tried to go down every path but would expect it to be in the Configuration Commands-&amp;gt;Shared path. But there is no reference to this object anywhere that I look. This is on a Panorama running 9.0.2. I have spent hours Googling and on the Palo site and can't find any references to application-tag. So I'm out of ideas.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 17:33:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/281181#M75923</guid>
      <dc:creator>FredWiest</dc:creator>
      <dc:date>2019-08-05T17:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Applications using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/282172#M76040</link>
      <description>&lt;P&gt;OK, in case anyone would like the solution to this. I was looking in the wrong direction. When you are working with Panorama, it is the Devices-&amp;gt;Device-Group path. Below is for the Global Device Group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the application-tag:&lt;/P&gt;&lt;P&gt;&amp;amp;action=get&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Global']/application-tag/entry[@name='ssh']/tag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And to edit the application-tag:&lt;/P&gt;&lt;P&gt;&amp;amp;action=edit&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Global']/application-tag/entry[@name='100bao']/tag/member&amp;amp;element=&amp;lt;member&amp;gt;Sanctioned&amp;lt;/member&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the tag "empty" you can clear the tag, but strangely enough, it sets the "Remove Tag Inheritance" flag. Anyone know why it does that?&lt;/P&gt;&lt;P&gt;action=edit&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='Global']/application-tag/entry[@name='100bao']/tag/member&amp;amp;element=&amp;lt;member&amp;gt;empty&amp;lt;/member&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 00:01:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-get-applications-using-xml-api/m-p/282172#M76040</guid>
      <dc:creator>FredWiest</dc:creator>
      <dc:date>2019-08-10T00:01:34Z</dc:date>
    </item>
  </channel>
</rss>

