<?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: Why can my API call show GlobalProtect  users but cannot disconnect them? in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/m-p/232869#M1785</link>
    <description>&lt;P&gt;I was missing the &amp;lt;domain&amp;gt;exampledomain&amp;lt;/domain&amp;lt;&amp;gt; parameter in my API call&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 23:29:22 GMT</pubDate>
    <dc:creator>gdo3</dc:creator>
    <dc:date>2018-09-27T23:29:22Z</dc:date>
    <item>
      <title>Why can my API call show GlobalProtect  users but cannot disconnect them?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/m-p/232802#M1783</link>
      <description>&lt;P&gt;Help Needed! I've been having this issue for a while now. I have a ticket open; yet, I am not able to get this API call to disconnect the connected GP gateway users. It's throwing me an 'invalid username' error each time, when I try to force-logout the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help spotting the issue is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; kickOut = requests.get('https://labfirewall.example.com/api/?type=op&amp;amp;key=MYKEYHERE&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;global-protect-gateway&amp;gt;&amp;lt;client-logout&amp;gt;&amp;lt;user&amp;gt;theuser&amp;lt;/user&amp;gt;&amp;lt;reason&amp;gt;force-logout&amp;lt;/reason&amp;gt;&amp;lt;gateway&amp;gt;Dummy_Gateway-N&amp;lt;/gateway&amp;gt;&amp;lt;computer&amp;gt;MACHINENAME&amp;lt;/computer&amp;gt;&amp;lt;/client-logout&amp;gt;&amp;lt;/global-protect-gateway&amp;gt;&amp;lt;/request&amp;gt;')
&amp;gt;&amp;gt;&amp;gt; soup = bs(kickOut.content, 'html.parser')
&amp;gt;&amp;gt;&amp;gt; print(soup)
&amp;lt;response status="success"&amp;gt;&amp;lt;result&amp;gt;
&amp;lt;response status="error"&amp;gt;
&amp;lt;gateway&amp;gt;Dummy_Gateway-N&amp;lt;/gateway&amp;gt;
&amp;lt;user&amp;gt;theuser&amp;lt;/user&amp;gt;
&amp;lt;computer&amp;gt;MACHINENAME&amp;lt;/computer&amp;gt;
&amp;lt;error&amp;gt;Invalid user name&amp;lt;/error&amp;gt;
&amp;lt;/response&amp;gt;
&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Sep 2018 19:14:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/m-p/232802#M1783</guid>
      <dc:creator>gdo3</dc:creator>
      <dc:date>2018-09-27T19:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why can my API call show GlobalProtect  users but cannot disconnect them?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/m-p/232869#M1785</link>
      <description>&lt;P&gt;I was missing the &amp;lt;domain&amp;gt;exampledomain&amp;lt;/domain&amp;lt;&amp;gt; parameter in my API call&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 23:29:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/m-p/232869#M1785</guid>
      <dc:creator>gdo3</dc:creator>
      <dc:date>2018-09-27T23:29:22Z</dc:date>
    </item>
  </channel>
</rss>

