<?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 multiple object in destination rule from CSV in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150034#M6848</link>
    <description>&lt;P&gt;The add subcommand must be added to your CSV in the destination. Try something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;layer,name,destination.add
Network,CSV,host1
Network,CSV,host2
Network,CSV,host3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it should do the work. This is what I got after creating an FTP rule called CSV with an empty destination and running the batch as described above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csvadd.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/16794iB18804993779318C/image-size/large?v=v2&amp;amp;px=999" role="button" title="csvadd.png" alt="csvadd.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true set access-rule add destination --format json --batch /home/admin/apiadd.csv&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Jun 2022 13:28:47 GMT</pubDate>
    <dc:creator>Alex-</dc:creator>
    <dc:date>2022-06-02T13:28:47Z</dc:date>
    <item>
      <title>add multiple object in destination rule from CSV</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150016#M6847</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try to find a solution to add mutiple objects in destination rule from a CSV file.&lt;/P&gt;&lt;P&gt;i don't find a solution&lt;/P&gt;&lt;P&gt;here my CSV file from VI&lt;/P&gt;&lt;P&gt;layer,name,destination&lt;BR /&gt;Network,Rule-name,object-1,object-2,object-3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mgmt_cli set access-rule add destination -b /home/xxx/My.csv&lt;/P&gt;&lt;P&gt;obect-3 is alone on destination so i need object-1 object-2 and object-3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i do that ?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 11:49:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150016#M6847</guid>
      <dc:creator>VFO</dc:creator>
      <dc:date>2022-06-02T11:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: add multiple object in destination rule from CSV</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150034#M6848</link>
      <description>&lt;P&gt;The add subcommand must be added to your CSV in the destination. Try something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;layer,name,destination.add
Network,CSV,host1
Network,CSV,host2
Network,CSV,host3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it should do the work. This is what I got after creating an FTP rule called CSV with an empty destination and running the batch as described above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csvadd.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/16794iB18804993779318C/image-size/large?v=v2&amp;amp;px=999" role="button" title="csvadd.png" alt="csvadd.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true set access-rule add destination --format json --batch /home/admin/apiadd.csv&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 13:28:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150034#M6848</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2022-06-02T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: add multiple object in destination rule from CSV</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150097#M6850</link>
      <description>&lt;P&gt;Thank you very much for your solution it is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 08:38:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-multiple-object-in-destination-rule-from-CSV/m-p/150097#M6850</guid>
      <dc:creator>VFO</dc:creator>
      <dc:date>2022-06-03T08:38:19Z</dc:date>
    </item>
  </channel>
</rss>

