<?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: API in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/104248#M77920</link>
    <description>&lt;P&gt;This is another question, different from the first one...&lt;BR /&gt;What's convenient for you?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 19:02:11 GMT</pubDate>
    <dc:creator>FraP</dc:creator>
    <dc:date>2020-12-03T19:02:11Z</dc:date>
    <item>
      <title>API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100778#M77913</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello.&lt;BR /&gt;I have a CSV file with more than 100 policy rules. I import them using command: &lt;STRONG&gt;mgmt_cli add access-rule --batch Policy-Book4.csv&lt;/STRONG&gt;. How can I import a file such that there are more than one value in the source, destination, service fields? The method that uses service.1, service.2 does not help in this case.&lt;BR /&gt;Postman, but I can't add more than one rule there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 09:27:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100778#M77913</guid>
      <dc:creator>sergey1</dc:creator>
      <dc:date>2020-11-01T09:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100780#M77914</link>
      <description>&lt;P&gt;Here you can find information and examples for the Management API:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#introduction~v1.7%20" target="_self"&gt;Management API Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 10:05:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100780#M77914</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-11-01T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100790#M77915</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Unfortunately, there is no example suitable for me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 13:06:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100790#M77915</guid>
      <dc:creator>sergey1</dc:creator>
      <dc:date>2020-11-01T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100792#M77916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You need to add rule by rule using the API, since I had a similar situation a while back. Had to create a script to generate the appropriate format for the API and I just added one by one. Haven't worked on it to do everything automated.&lt;/P&gt;
&lt;P&gt;For multiple sources, destinations, services you would have to create a list.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;"source" : [ "source1", "source2", "source 3" ],
"destination" : [ "destination 1". "destination2" ],
"service" : [ "svc1" , "svc2"] &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 13:36:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/100792#M77916</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2020-11-01T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/103520#M77917</link>
      <description>&lt;P&gt;Please explain why you changed the format? And can I have a look at your script?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 10:29:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/103520#M77917</guid>
      <dc:creator>sergey1</dc:creator>
      <dc:date>2020-11-27T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/103558#M77918</link>
      <description>&lt;P&gt;Actually the syntax is the same...&lt;/P&gt;&lt;P&gt;If you can test try this example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true add host name "host_1" ipv4-address "10.10.10.10"
mgmt_cli -r true add network name "net_1" subnet  "10.10.10.0" mask-length "29"

lol.csv
layer,name,position,comments,source.1,source.2,destination.1,destination.2,service.1,service.2,action,track
Test Security,"Rule1","1","TEST1","host_1","net_1","net_1","host_1","http","https","Accept","Log"
Test Security,"Rule2","2","TEST2","host_1","net_1","net_1","host_1","http",,"Accept","Log"
Test Security,"Rule3","3","TEST3","host_1","net_1","net_1","host_1","http","https","Accept","Log"
Test Security,"Rule4","4","TEST3","","net_1","net_1","host_1","http","https","Accept","Log"
Test Security,"Rule0","1","TEST0","net_1",,"net_1","host_1","http","https","Accept","Log"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace Test Security with your access-layer&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 19:22:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/103558#M77918</guid>
      <dc:creator>FraP</dc:creator>
      <dc:date>2020-11-27T19:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/104041#M77919</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It is not convenient to do this when the number of sources / destination / services varies from 1 to 20&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 17:53:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/104041#M77919</guid>
      <dc:creator>sergey1</dc:creator>
      <dc:date>2020-12-02T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: API</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/104248#M77920</link>
      <description>&lt;P&gt;This is another question, different from the first one...&lt;BR /&gt;What's convenient for you?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:02:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API/m-p/104248#M77920</guid>
      <dc:creator>FraP</dc:creator>
      <dc:date>2020-12-03T19:02:11Z</dc:date>
    </item>
  </channel>
</rss>

