<?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: Output format for test/url-info-cloud and test/url-info-host in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/output-format-for-test-url-info-cloud-and-test-url-info-host/m-p/322529#M2267</link>
    <description>&lt;P&gt;&lt;SPAN&gt;BM stands for Best Match, and the first numerical value you see is a Best Match code. The exact meaning of the BM code was not shared with me, but it is only relevant to Palo Alto Networks for debugging purposes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The second numerical value is an expiration code obtained from the cloud meant to tell set the MP/DP cache timeout, The expiration code can range in value from 1 to 5. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 == Never expire &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 == 7 days &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 == 1 day &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 == 1 hour &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5 == 30 minutes&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2020 19:09:25 GMT</pubDate>
    <dc:creator>mivaldi</dc:creator>
    <dc:date>2020-04-13T19:09:25Z</dc:date>
    <item>
      <title>Output format for test/url-info-cloud and test/url-info-host</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/output-format-for-test-url-info-cloud-and-test-url-info-host/m-p/247489#M1853</link>
      <description>&lt;P&gt;So I had a crazy idea and started poking around at the XML API on my firewall.&amp;nbsp; I wanted to see if there was a generally efficient way to automate a query against PAN-DB.&amp;nbsp; Seems straightforward enought; either test/url-info-cloud or test/url-info-host (depending on whether I want to check the MP cache or against the cloud... though I'm not sure if there are limitations for the latter, such as what WildFire's API has).&amp;nbsp; I realize there's a public web interface for this check, but that's not what I'm looking for.&amp;nbsp; I'm trying to automate a process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm not sure about is the formatting of the response/output.&amp;nbsp; For example, submitting the following against url-info-cloud for google.com returns an interesting response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;test&amp;gt;&amp;lt;url-info-cloud&amp;gt;google.com&amp;lt;/url-info-cloud&amp;gt;&amp;lt;/test&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;response cmd="status" status="success"&amp;gt;&amp;lt;result&amp;gt;BM:
google.com,9,5,search-engines
...
BM:
...
&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;P&gt;(I've limited the output intentionally... not sure about how sensitive PA is to this)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And querying the same against url-info-host:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;test&amp;gt;&amp;lt;url-info-host&amp;gt;google.com&amp;lt;/url-info-host&amp;gt;&amp;lt;/test&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;response cmd="status" status="success"&amp;gt;&amp;lt;result&amp;gt;Ancestors info:

BM:
google.com,1,5,search-engines,,

Descendants info:
wallet.google.com,1,5,financial-services,,
...
&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm expecting some differences between url-info-cloud and url-info-host due to PAN-DB's design, but I'm not sure what the all of the output means, other than the obvious stuff.&amp;nbsp; Strings like "BM:" and ",9,5," in url-info-cloud don't appear to have any corresponding documentation to explain their meaning.&amp;nbsp; The same goes for "Anscestors info:", "Decendants info:", ",1,5,", and the ",," at the end of the individual result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When parsing out this response, should these strings and values mean something?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:15:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/output-format-for-test-url-info-cloud-and-test-url-info-host/m-p/247489#M1853</guid>
      <dc:creator>rickyboone</dc:creator>
      <dc:date>2019-01-24T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output format for test/url-info-cloud and test/url-info-host</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/output-format-for-test-url-info-cloud-and-test-url-info-host/m-p/322529#M2267</link>
      <description>&lt;P&gt;&lt;SPAN&gt;BM stands for Best Match, and the first numerical value you see is a Best Match code. The exact meaning of the BM code was not shared with me, but it is only relevant to Palo Alto Networks for debugging purposes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The second numerical value is an expiration code obtained from the cloud meant to tell set the MP/DP cache timeout, The expiration code can range in value from 1 to 5. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 == Never expire &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 == 7 days &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 == 1 day &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 == 1 hour &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5 == 30 minutes&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 19:09:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/output-format-for-test-url-info-cloud-and-test-url-info-host/m-p/322529#M2267</guid>
      <dc:creator>mivaldi</dc:creator>
      <dc:date>2020-04-13T19:09:25Z</dc:date>
    </item>
  </channel>
</rss>

