<?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 Is there an XML API query to find the Host-ID from Panorama logs in GlobalProtect Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/is-there-an-xml-api-query-to-find-the-host-id-from-panorama-logs/m-p/586821#M5356</link>
    <description>&lt;P&gt;Is there a way to use XML API to query the Host-ID from Panorama logs?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the XML API requests to remove a user from the VPN and to add a user's device to a quarantine list working.&amp;nbsp; To add a user's device to the quarantine list requires the Host-ID.&amp;nbsp; I'm trying to find a way to get the Host-ID for a specific user using API and not the GUI.&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 17:28:02 GMT</pubDate>
    <dc:creator>John_J</dc:creator>
    <dc:date>2024-05-15T17:28:02Z</dc:date>
    <item>
      <title>Is there an XML API query to find the Host-ID from Panorama logs</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/is-there-an-xml-api-query-to-find-the-host-id-from-panorama-logs/m-p/586821#M5356</link>
      <description>&lt;P&gt;Is there a way to use XML API to query the Host-ID from Panorama logs?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the XML API requests to remove a user from the VPN and to add a user's device to a quarantine list working.&amp;nbsp; To add a user's device to the quarantine list requires the Host-ID.&amp;nbsp; I'm trying to find a way to get the Host-ID for a specific user using API and not the GUI.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 17:28:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/is-there-an-xml-api-query-to-find-the-host-id-from-panorama-logs/m-p/586821#M5356</guid>
      <dc:creator>John_J</dc:creator>
      <dc:date>2024-05-15T17:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an XML API query to find the Host-ID from Panorama logs</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/is-there-an-xml-api-query-to-find-the-host-id-from-panorama-logs/m-p/586829#M5362</link>
      <description>&lt;P&gt;Figured it out:&lt;BR /&gt;##Generate logs filtering for srcuser##&lt;/P&gt;
&lt;P&gt;https://&lt;EM&gt;&lt;STRONG&gt;&amp;lt;FIRERWALL_NAME&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;/api?key=&lt;EM&gt;&lt;STRONG&gt;&amp;lt;API_KEY&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&amp;amp;type=log&amp;amp;log-type=globalprotect&amp;amp;query=(srcuser eq '&lt;EM&gt;&lt;STRONG&gt;USERNAME&lt;/STRONG&gt;&lt;/EM&gt;')&lt;/P&gt;
&lt;P&gt;This will return a Job ID which will be used in the next command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;##Show the log you just created##&lt;/P&gt;
&lt;P&gt;https://&lt;STRONG&gt;&amp;lt;FIRERWALL_NAME&amp;gt;&lt;/STRONG&gt;/api?key=&lt;STRONG&gt;&amp;lt;API_KEY&amp;gt;&lt;/STRONG&gt;&amp;amp;type=log&amp;amp;action=get&amp;amp;job-id=&lt;STRONG&gt;JOB_ID&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This will show the logs related to the username in the first API request.&amp;nbsp; The Host-ID is included in this data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;##Delete the job log you created##&lt;/P&gt;
&lt;P&gt;https://&lt;STRONG&gt;&amp;lt;FIRERWALL_NAME&amp;gt;&lt;/STRONG&gt;/api?key=&lt;STRONG&gt;&amp;lt;API_KEY&amp;gt;&lt;/STRONG&gt;&amp;amp;type=log&amp;amp;action=finish&amp;amp;job-id=&lt;STRONG&gt;JOB_ID&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 18:18:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/is-there-an-xml-api-query-to-find-the-host-id-from-panorama-logs/m-p/586829#M5362</guid>
      <dc:creator>John_J</dc:creator>
      <dc:date>2024-05-15T18:18:05Z</dc:date>
    </item>
  </channel>
</rss>

