<?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: Management API - Using CSV to bulk add objects - Doubled Items in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53045#M3443</link>
    <description>&lt;P&gt;Add set-if-exists true to your command line.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 17:01:10 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-05-09T17:01:10Z</dc:date>
    <item>
      <title>Management API - Using CSV to bulk add objects - Doubled Items</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53039#M3441</link>
      <description>&lt;P&gt;Hi CP-Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add a bunch of network-objects at a time. I have a csv-file with this syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;name, comments, subnet, mask-length, color&lt;/P&gt;&lt;P&gt;&amp;lt;nam_1&amp;gt;, &amp;lt;com_1&amp;gt;, &amp;lt;x.x.x.x&amp;gt;&amp;gt;, 16, forest green&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I no call the csv via &amp;lt;&lt;STRONG&gt;mgmt_cli add network --batch test_add.csv&lt;/STRONG&gt;&amp;gt; I get warnings if a object is reached, which has the same network-definition.&amp;nbsp;&lt;BR /&gt;I would like the API to just skip these elements, but process the others instead of stopping and discarding all. (the --ignore-errors would just ignore the warning and double objects, what is not my intension).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 15:45:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53039#M3441</guid>
      <dc:creator>Linus_Espach</dc:creator>
      <dc:date>2019-05-09T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Management API - Using CSV to bulk add objects - Doubled Items</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53045#M3443</link>
      <description>&lt;P&gt;Add set-if-exists true to your command line.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 17:01:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53045#M3443</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-05-09T17:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Management API - Using CSV to bulk add objects - Doubled Items</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53099#M3444</link>
      <description>Hi PhoneBoy,&lt;BR /&gt;thanks for your fast reply.&lt;BR /&gt;I didn`t see the &amp;lt;more&amp;gt; options, nice 2 have. In this case I am more looking for a &amp;lt;skip-if-exists&amp;gt; option, but probably it doesn`t exist.&lt;BR /&gt;Best regards,</description>
      <pubDate>Fri, 10 May 2019 06:31:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53099#M3444</guid>
      <dc:creator>Linus_Espach</dc:creator>
      <dc:date>2019-05-10T06:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Management API - Using CSV to bulk add objects - Doubled Items</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53145#M3446</link>
      <description>That did not resolve the issue. If i add set-if-exists true to my command, I still get the warning and the validation failed. If I add an additions ignore-warnings true, the object is not updated, but a second with same subnet and mask is created.</description>
      <pubDate>Fri, 10 May 2019 14:41:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53145#M3446</guid>
      <dc:creator>Linus_Espach</dc:creator>
      <dc:date>2019-05-10T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Management API - Using CSV to bulk add objects - Doubled Items</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53220#M3454</link>
      <description>There is not a skip-if-exists option.&lt;BR /&gt;The set-if-exists option will update the existing object, assuming you're using the same name,&lt;BR /&gt;But it sounds like you have two different object names with the same network definition.&lt;BR /&gt;And, at the moment, your options are to remove the offending entries from the CSV or use ignore-warnings true and have multiple definitions of the same network.</description>
      <pubDate>Sat, 11 May 2019 22:35:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Using-CSV-to-bulk-add-objects-Doubled-Items/m-p/53220#M3454</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-05-11T22:35:04Z</dc:date>
    </item>
  </channel>
</rss>

