<?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: Add shared Object in REST API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20659#M536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I was looking to add an address as shared, so that it could be used in every vsys.&amp;nbsp; Turns out to add an object as shared you use&lt;/P&gt;&lt;P&gt;xpath=/config/shared/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now able to add a shared address and then add that address to a shared group.&amp;nbsp; Does anyone know how to remove an address from a group?&amp;nbsp; Using action=delete tries to delete the entire group even though I am specifying a member in that group to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if anyone knows how to perform a commit lock on either the whole system or just 1 vsys it would also be handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 14:53:15 GMT</pubDate>
    <dc:creator>rays1</dc:creator>
    <dc:date>2012-01-18T14:53:15Z</dc:date>
    <item>
      <title>Add shared Object in REST API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20657#M534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running code verion 4.0.7 and am trying to create a new shared address, then add that address to a shared address-group.&amp;nbsp; Since I am not running 4.1, I don't have the API browser and my attempts at guessing the correct path have failed.&amp;nbsp; Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:18:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20657#M534</guid>
      <dc:creator>rays1</dc:creator>
      <dc:date>2012-01-17T15:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add shared Object in REST API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20658#M535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNormal"&gt;To add an address object to a vsys:&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;A href="http://172.16.1.1/api/?type=config&amp;amp;action=get&amp;amp;xpath=%2Fconfig%2Fdevices%2Fentry%5B%40name%3D%27localhost.localdomain%27%5D%2Fvsys%2Fentry%5B%40name%3D%27vsys1%27%5D%2Faddress" style="text-decoration: none;" target="_rest_api"&gt;&lt;SPAN style="color: #000000;"&gt;http(s)://firewall/esp/restapi.esp?type=config&amp;amp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;action=set&amp;amp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN style="color: #000000; "&gt;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN style="color: #000000; "&gt;element=&amp;lt;entry name='test-addr'&amp;gt;&amp;lt;ip-netmask&amp;gt;2.2.2.2/32&amp;lt;/ip-netmask&amp;gt;&amp;lt;/entry&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;To add the address object to a address group:&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;http(s)://firewall/esp/restapi.esp?type=config&amp;amp;action=set&amp;amp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address-group/entry[@name='test-addr-grp']&amp;amp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;element=&amp;lt;member&amp;gt;test-addr&amp;lt;/member&amp;gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN style="color: #036dda; "&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 01:22:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20658#M535</guid>
      <dc:creator>SRA</dc:creator>
      <dc:date>2012-01-18T01:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add shared Object in REST API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20659#M536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I was looking to add an address as shared, so that it could be used in every vsys.&amp;nbsp; Turns out to add an object as shared you use&lt;/P&gt;&lt;P&gt;xpath=/config/shared/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now able to add a shared address and then add that address to a shared group.&amp;nbsp; Does anyone know how to remove an address from a group?&amp;nbsp; Using action=delete tries to delete the entire group even though I am specifying a member in that group to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if anyone knows how to perform a commit lock on either the whole system or just 1 vsys it would also be handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 14:53:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20659#M536</guid>
      <dc:creator>rays1</dc:creator>
      <dc:date>2012-01-18T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add shared Object in REST API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20660#M537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A nice way to determine XPath and XML needed when using the API is in operational mode do 'debug cli on' then in configuration mode execute the set/delete/show/etc command you want to duplicate and observe the debug output.&amp;nbsp; In your case you'll find you need something like:&amp;nbsp; /config/shared/address-group/entry[@name='g1']/member[text()='host1']&amp;nbsp; to delete multiple group members you can do:&amp;nbsp; /config/shared/address-group/entry[@name='g1']/member[text()='host1' or text()='host2']&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 19:08:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20660#M537</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2012-01-18T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add shared Object in REST API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20661#M538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats great news!&amp;nbsp; Using the cli debug I was able to determine the correct syntax to do almost everything I needed to do.&amp;nbsp; Had I known that before, a great deal of time could have been saved.&amp;nbsp; Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 20:22:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-shared-object-in-rest-api/m-p/20661#M538</guid>
      <dc:creator>rays1</dc:creator>
      <dc:date>2012-01-18T20:22:37Z</dc:date>
    </item>
  </channel>
</rss>

