<?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: Position of rules in batch upload in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14621#M1032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the full CLI you are trying?&lt;/P&gt;&lt;P&gt;And have you tried it without the CSV file (i.e. just adding a single rule) to validate the syntax is correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2018 23:58:46 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2018-11-09T23:58:46Z</dc:date>
    <item>
      <title>Position of rules in batch upload</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14620#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using the API with the mgmt_cli --batch parameter to do a mass upload of rules. Has anyone had any luck with using something other than top or bottom in the position parameter? If I run the command manually I can use above, below, etc but when I use those parameters in the csv it returns an error for invalid value for position, and shows the only two values as top or bottom. Anyone have any experience with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:45:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14620#M1031</guid>
      <dc:creator>Kris_Meldrum</dc:creator>
      <dc:date>2018-11-08T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Position of rules in batch upload</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14621#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the full CLI you are trying?&lt;/P&gt;&lt;P&gt;And have you tried it without the CSV file (i.e. just adding a single rule) to validate the syntax is correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 23:58:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14621#M1032</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-11-09T23:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Position of rules in batch upload</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14622#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample of one of the rules. If you try running this just in the CLI it succeeds. If I run this from the batch it'll fail with invalid parameter position. Valid entries are [top, bottom]&lt;/P&gt;&lt;TABLE width="1790"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="1790"&gt;mgmt_cli add nat-rule -d Sandbox_Lab_2 package Standard original-source Source1 original-destination Destination1_NAT method static translated-destination&amp;nbsp;Destination1 comments "sample rule"&amp;nbsp; position.above "# NAT Rules for Vendors"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2018 15:59:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14622#M1033</guid>
      <dc:creator>Kris_Meldrum</dc:creator>
      <dc:date>2018-11-13T15:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Position of rules in batch upload</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14623#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to insert NAT rules above a manually created NAT rule successfully.&lt;/P&gt;&lt;P&gt;The CLI call?&amp;nbsp;mgmt_cli -r true add nat-rule --batch csv&lt;/P&gt;&lt;P&gt;The header of my CSV file looks something like this:&lt;/P&gt;&lt;P class="" style="padding-left: 30px;"&gt;&lt;SPAN class="" style="font-family: 'courier new', courier, monospace;"&gt;package,original-source,original-destination,method,translated-source,translated-destination,comments,position.above&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;What I used in position.above was the rule UID of the rule I wanted to put the rules above.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2018 00:09:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Position-of-rules-in-batch-upload/m-p/14623#M1034</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-11-17T00:09:28Z</dc:date>
    </item>
  </channel>
</rss>

