<?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: API and Useragents in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-and-useragents/m-p/6731#M180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you been able to resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working with a project where I'm running the same challenge. I need to add ts-agents to the Panorama configuration as a new servers are installed and remove/disable the agents when the servers are offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you figured out a good way to do this? I would really appreciate if anyone could share their experiences with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 13:37:14 GMT</pubDate>
    <dc:creator>torm</dc:creator>
    <dc:date>2014-08-25T13:37:14Z</dc:date>
    <item>
      <title>API and Useragents</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-and-useragents/m-p/6730#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have been trying to figure out if there is a way to enable and disable TS Agents through the API.&amp;nbsp; We run a bunch of Citrix farms and the agents will be going up and down during reboots and usage.&amp;nbsp; What I want to do is to disable a server when it goes down and then enable it when it comes back up.&amp;nbsp;&amp;nbsp; I have searched through the /api commands and the API pdf download but, nothing is explained all that well and the site doesn't seem to have many questions about it.&amp;nbsp; Below is what I have pieced together from testing other code but, it doesn't seem to work.&amp;nbsp; I keep getting the error below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://10.5.1.8/api/?type=config&amp;amp;action=edit&amp;amp;key=****&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/user-id-agent/entry[@name='usragent02']&amp;amp;element="&gt;https://10.5.1.8/api/?type=config&amp;amp;action=edit&amp;amp;key=****&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/user-id-agent/entry[@name='usragent02']&amp;amp;element=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;entry name='usragent02&amp;gt;&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;&amp;lt;/entry&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="line" style="color: #000000; font-family: monospace;"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;response&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;status&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;success&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;code&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;19&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em; color: #000000; font-family: monospace;"&gt;&lt;/P&gt;&lt;DIV class="collapsible"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="collapse-button button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;result&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;total-count&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="webkit-html-attribute"&gt; &lt;SPAN class="webkit-html-attribute-name"&gt;count&lt;/SPAN&gt;="&lt;SPAN class="webkit-html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="collapsible"&gt;&lt;DIV class="expanded"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="collapse-button button" style="margin-left: -10px; background-position: no-repeat no-repeat;"&gt;&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;config&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="collapsible-content" style="margin-left: 1em;"&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;rematch&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;yes&lt;/SPAN&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/rematch&amp;gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/config&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/result&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="line" style="color: #000000; font-family: monospace;"&gt;&lt;SPAN class="webkit-html-tag"&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 21:10:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-and-useragents/m-p/6730#M179</guid>
      <dc:creator>bacondude</dc:creator>
      <dc:date>2014-03-17T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: API and Useragents</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-and-useragents/m-p/6731#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you been able to resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working with a project where I'm running the same challenge. I need to add ts-agents to the Panorama configuration as a new servers are installed and remove/disable the agents when the servers are offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you figured out a good way to do this? I would really appreciate if anyone could share their experiences with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:37:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/api-and-useragents/m-p/6731#M180</guid>
      <dc:creator>torm</dc:creator>
      <dc:date>2014-08-25T13:37:14Z</dc:date>
    </item>
  </channel>
</rss>

