<?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 remove an address-group member via XML API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33028#M24201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of PAN-OS are you using ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On PAN OS 6.0.x, here is the command to remove an address object called 'MyAddress' from an address group called 'MyGroup' (notice the additional '/static' in the XPath):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://IP/api/?type=config&amp;amp;action=delete&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='MyGroup']/static/member[text()='MyAddress']&amp;amp;REST_API_TOKEN=671208282" rel="nofollow"&gt;https://IP/api/?type=config&amp;amp;action=delete&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='MyGroup']/static/member[text()='MyAddress']&amp;amp;REST_API_TOKEN=671208282&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success" code="20"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;msg&amp;gt;command succeeded&amp;lt;/msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this test 'REST_API_TOKEN' was used for auth, that can be ignored since you are using a key (&amp;amp;key=MyKey) which works as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 20:33:10 GMT</pubDate>
    <dc:creator>goku123</dc:creator>
    <dc:date>2014-10-16T20:33:10Z</dc:date>
    <item>
      <title>How to remove an address-group member via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33027#M24200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to remove a single member from an address-group, here is the query I am sending:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://firewall1.it.mydomain.net/api/?type=config&amp;amp;action=delete&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='NameOfTheGrpoup']/member[text()='NameOfTheMember']&amp;amp;key=MyKey" rel="nofollow"&gt;https://firewall1.it.mydomain.net/api/?type=config&amp;amp;action=delete&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='NameOfTheGrpoup']/member[text()='NameOfTheMember']&amp;amp;key=MyKey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The query returns the following:&lt;/P&gt;&lt;P class="c" style="margin-left: 1em; text-indent: -2em;"&gt; &lt;SPAN class="m"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="c" style="margin-left: 1em; text-indent: -2em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;response&lt;/SPAN&gt;&lt;SPAN class="t"&gt; status&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;success&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt; code&lt;/SPAN&gt;&lt;SPAN class="m"&gt;="&lt;/SPAN&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;SPAN class="m"&gt;"&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;msg&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;Object doesn't exist&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;msg&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt; &lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="b"&gt; &lt;/SPAN&gt; &lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;response&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;I double-checked that both NameOfTheGroup and NameOfTheMember are correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;What am I missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;Alex.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;I&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;I&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin-left: 1em; text-indent: -2em;"&gt;&lt;SPAN class="m" style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 20:17:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33027#M24200</guid>
      <dc:creator>Alextc</dc:creator>
      <dc:date>2014-10-16T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove an address-group member via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33028#M24201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of PAN-OS are you using ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On PAN OS 6.0.x, here is the command to remove an address object called 'MyAddress' from an address group called 'MyGroup' (notice the additional '/static' in the XPath):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://IP/api/?type=config&amp;amp;action=delete&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='MyGroup']/static/member[text()='MyAddress']&amp;amp;REST_API_TOKEN=671208282" rel="nofollow"&gt;https://IP/api/?type=config&amp;amp;action=delete&amp;amp;xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='MyGroup']/static/member[text()='MyAddress']&amp;amp;REST_API_TOKEN=671208282&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success" code="20"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;msg&amp;gt;command succeeded&amp;lt;/msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this test 'REST_API_TOKEN' was used for auth, that can be ignored since you are using a key (&amp;amp;key=MyKey) which works as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 20:33:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33028#M24201</guid>
      <dc:creator>goku123</dc:creator>
      <dc:date>2014-10-16T20:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove an address-group member via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33029#M24202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, that was it. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Btw, where can I learn about REST_API_TOKEN, since sending my key in the query string seems insecure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Alex.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="e"&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="m"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 20:52:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33029#M24202</guid>
      <dc:creator>Alextc</dc:creator>
      <dc:date>2014-10-16T20:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove an address-group member via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33030#M24203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;The token is displayed in the browser address bar if you use first login to the UI &amp;amp; then navigate to API browser at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://firewall/api" rel="nofollow"&gt;https://firewall/api&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; The token lifetime should be limited to the lifetime of the UI session you are logged in so the using the key may be the right way to go if you need to automate API requests unattended.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 21:04:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-remove-an-address-group-member-via-xml-api/m-p/33030#M24203</guid>
      <dc:creator>goku123</dc:creator>
      <dc:date>2014-10-16T21:04:44Z</dc:date>
    </item>
  </channel>
</rss>

