<?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 Importing NAT policies with api in batch mode in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34532#M2106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to import a set of NAT policies which exist in a csv file. The file's headings are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="55" width="817"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 59px;"&gt;package&lt;/TD&gt;&lt;TD style="width: 54px;"&gt;position&lt;/TD&gt;&lt;TD style="width: 90px;"&gt;original-source&lt;/TD&gt;&lt;TD style="width: 102px;"&gt;translated-source&lt;/TD&gt;&lt;TD style="width: 105px;"&gt;original-destination&lt;/TD&gt;&lt;TD style="width: 106px;"&gt;translated-destination&lt;/TD&gt;&lt;TD style="width: 95px;"&gt;original-service&lt;/TD&gt;&lt;TD style="width: 86px;"&gt;translated-service&lt;/TD&gt;&lt;TD style="width: 56px;"&gt;enabled&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem occurs when I run the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli add nat-rule --batch [csv file]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I get dozens of lines of this output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message: "Requested object [x] not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yet I know for a fact that all of the objects referenced already exist in the database since I had imported every other type of object first, leaving the NAT policies deliberately as the last item to import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody else had problems with this? I am also struggling to find any examples on bulk-importing nat policies via api so any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2019 07:39:47 GMT</pubDate>
    <dc:creator>Nick_Doropoulos</dc:creator>
    <dc:date>2019-02-20T07:39:47Z</dc:date>
    <item>
      <title>Importing NAT policies with api in batch mode</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34532#M2106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to import a set of NAT policies which exist in a csv file. The file's headings are the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="55" width="817"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 59px;"&gt;package&lt;/TD&gt;&lt;TD style="width: 54px;"&gt;position&lt;/TD&gt;&lt;TD style="width: 90px;"&gt;original-source&lt;/TD&gt;&lt;TD style="width: 102px;"&gt;translated-source&lt;/TD&gt;&lt;TD style="width: 105px;"&gt;original-destination&lt;/TD&gt;&lt;TD style="width: 106px;"&gt;translated-destination&lt;/TD&gt;&lt;TD style="width: 95px;"&gt;original-service&lt;/TD&gt;&lt;TD style="width: 86px;"&gt;translated-service&lt;/TD&gt;&lt;TD style="width: 56px;"&gt;enabled&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem occurs when I run the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli add nat-rule --batch [csv file]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I get dozens of lines of this output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message: "Requested object [x] not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yet I know for a fact that all of the objects referenced already exist in the database since I had imported every other type of object first, leaving the NAT policies deliberately as the last item to import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody else had problems with this? I am also struggling to find any examples on bulk-importing nat policies via api so any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:39:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34532#M2106</guid>
      <dc:creator>Nick_Doropoulos</dc:creator>
      <dc:date>2019-02-20T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NAT policies with api in batch mode</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34533#M2107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tested the adding of 1 rule without csv? I was struggling with csv import last week as well and ended up doing a line by line as their was only 20 or so lines I wanted to import. I still needed to triple check why the file we used did not work.&lt;/P&gt;&lt;P&gt;For me at that time it was quicker to use Notepad ++ in column mode to add the commands around the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:14:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34533#M2107</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2019-02-20T22:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NAT policies with api in batch mode</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34534#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there TAB in the csv file ? Did you use Excel ? Try to use simple notepad or notepad++ instead.&lt;/P&gt;&lt;P&gt;Or maybe try to use " " in csv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2019 08:00:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34534#M2108</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2019-02-23T08:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NAT policies with api in batch mode</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34535#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to load just one line on your csv file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 17:07:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34535#M2109</guid>
      <dc:creator>Alessandro_Marr</dc:creator>
      <dc:date>2019-02-26T17:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Importing NAT policies with api in batch mode</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34536#M2110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.checkpoint.com/migrated-users/53536"&gt;Nicholas Doropoulos&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;Did you solve your issues? if not, please execute the "faulty" command and then perform: api status -s&amp;nbsp; (the output for this command is .tgz file with relevant logs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send me the logs to amiads@checkpoint.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:14:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Importing-NAT-policies-with-api-in-batch-mode/m-p/34536#M2110</guid>
      <dc:creator>Amiad_Stern</dc:creator>
      <dc:date>2019-02-27T21:14:22Z</dc:date>
    </item>
  </channel>
</rss>

