<?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: Adding a new firewall to existing log collector group via API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257483#M1896</link>
    <description>&lt;P&gt;Hey Jason, if you want to just reply here with the xpath and element that we were able to determine was working for the call in case anyone else comes along and is looking for the answer.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 18:36:37 GMT</pubDate>
    <dc:creator>nigelswift</dc:creator>
    <dc:date>2019-04-12T18:36:37Z</dc:date>
    <item>
      <title>Adding a new firewall to existing log collector group via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257454#M1893</link>
      <description>&lt;P&gt;Does any one know if there is an XML API call to add a new firewall to an existing Log Collector group, without needing to specify all the existing members of the LC group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance...here is the XML debug when adding a new firewall to an existing group.&amp;nbsp; Unfortunately, I need to include all of the other firewalls as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;request cmd="op"&amp;nbsp; target="panorama"&amp;gt;&lt;BR /&gt;&amp;lt;operations xml="yes"&amp;gt;&lt;BR /&gt;&amp;lt;set&amp;gt;&lt;BR /&gt;&amp;lt;log-collector-group-preference-list&amp;gt;&lt;BR /&gt;&amp;lt;log-collector-group&amp;gt;GROUP&amp;lt;/log-collector-group&amp;gt;&lt;BR /&gt;&amp;lt;collector-preference-list&amp;gt;&lt;BR /&gt;&amp;lt;entry&amp;gt;&lt;BR /&gt;&amp;lt;devices&amp;gt;&lt;BR /&gt;&amp;lt;entry name="existing1"/&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;entry name="existingN"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;entry name="newFW"/&amp;gt;&lt;BR /&gt;&amp;lt;/devices&amp;gt;&lt;BR /&gt;&amp;lt;collectors&amp;gt;&lt;BR /&gt;&amp;lt;entry name="1"/&amp;gt;&lt;BR /&gt;&amp;lt;entry name="2"/&amp;gt;&lt;BR /&gt;&amp;lt;/collectors&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/collector-preference-list&amp;gt;&lt;BR /&gt;&amp;lt;/log-collector-group-preference-list&amp;gt;&lt;BR /&gt;&amp;lt;/set&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:53:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257454#M1893</guid>
      <dc:creator>jasonrakers</dc:creator>
      <dc:date>2019-04-12T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new firewall to existing log collector group via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257469#M1894</link>
      <description>&lt;P&gt;Hey Jason,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good on you for pulling the debug. Usually good info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For configuration calls, we use the type=config calls. For setting configuration, we'd use action=set. The call to actually pull the config for log collector group is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/log-collector-group&lt;/PRE&gt;&lt;P&gt;At this point I don't have a lab set up that I could directly test this against to actually get the syntax we need to set, but if you have some time I was able to get your contact info from our internal support site and would be happy to reach out if you have an opportunity to test a few calls with me on a call. If not and just the call above is sufficient and you'd like to figure out the rest on your own, that's fine as well. Let me know, it should be a pretty quick thing assuming you have management access to the Panorama.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 17:30:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257469#M1894</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2019-04-12T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new firewall to existing log collector group via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257479#M1895</link>
      <description>&lt;P&gt;Reach out, very curious if we can make this work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i am testing with..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api call.JPG" style="width: 800px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/19578iA9FED8506596FD58/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="api call.JPG" alt="api call.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:09:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257479#M1895</guid>
      <dc:creator>jasonrakers</dc:creator>
      <dc:date>2019-04-12T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new firewall to existing log collector group via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257483#M1896</link>
      <description>&lt;P&gt;Hey Jason, if you want to just reply here with the xpath and element that we were able to determine was working for the call in case anyone else comes along and is looking for the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:36:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257483#M1896</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2019-04-12T18:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new firewall to existing log collector group via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257485#M1897</link>
      <description>&lt;P&gt;Thank you so much for your help!&amp;nbsp; Here is the API call used to update an existing LC group with a new firewall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&lt;SPAN&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN&gt;{{panorama}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/api/?type=config&amp;amp;action=set&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&lt;SPAN&gt;&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/log-collector-group/entry[@name='{{LC-group-NAME}}']/logfwd-setting/devices&amp;amp;key=&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN&gt;{{panorama-key}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;element=&amp;lt;entry name="{{newfw}}"&amp;gt;&amp;lt;collectors&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&lt;SPAN&gt;&amp;lt;entry name="{{existingLC}}"/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&lt;SPAN&gt;&amp;lt;/collectors&amp;gt;&amp;lt;/entry&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;&lt;SPAN&gt;I used Postman where {{ }} are variables for my environment.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:41:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/adding-a-new-firewall-to-existing-log-collector-group-via-api/m-p/257485#M1897</guid>
      <dc:creator>jasonrakers</dc:creator>
      <dc:date>2019-04-12T18:41:28Z</dc:date>
    </item>
  </channel>
</rss>

