<?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: Block ip address using api rest in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116525#M5797</link>
    <description>&lt;P&gt;You can find the full documentation of our API at &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To create a rule blocking a group of IPs take a look at these API commands:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	add-group name "ExampleGroup_BlockIps"
	add-host name "Block_203.0.113.11" ip-address "203.0.113.11" groups "ExampleGroup_BlockIps"
	add-access-rule layer "Network" position "top" source "ExampleGroup_BlockIps"&lt;/LI-CODE&gt;
&lt;P&gt;Feel free to try these out in SmartConsole demo mode!&lt;/P&gt;
&lt;P&gt;BTW: &lt;BR /&gt;If you are interesting in a comprehensive training, we offer course and certification focused on automating tasks with the API:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://training-certifications.checkpoint.com/#/courses/Check%20Point%20Certified%20Automation%20Specialist%20(CCAS)" target="_blank" rel="noopener"&gt;Check Point Certified Automation Specialist (CCAS)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 13:27:00 GMT</pubDate>
    <dc:creator>Jonas_Rosenboom</dc:creator>
    <dc:date>2021-04-21T13:27:00Z</dc:date>
    <item>
      <title>Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116382#M5792</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possibile to create a rule to block a list of ips using the api rest (Web Service)?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using checkpoint R80.40.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 08:06:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116382#M5792</guid>
      <dc:creator>ottis79</dc:creator>
      <dc:date>2021-04-20T08:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116415#M5793</link>
      <description>&lt;P&gt;Have a look here:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Blocking-TOR-exit-nodes-with-Python-and-R80-10-API/td-p/39451" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Blocking-TOR-exit-nodes-with-Python-and-R80-10-API/td-p/39451&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The thread contains an example to manage blocklists in the rule-base, as well as providing information on other, possibly better options.&lt;/P&gt;
&lt;P&gt;Depending on your exact use case,&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk132193" target="_self"&gt;Custom Intelligence Feeds&lt;/A&gt;&amp;nbsp;may also be a great solution.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:35:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116415#M5793</guid>
      <dc:creator>Jonas_Rosenboom</dc:creator>
      <dc:date>2021-04-20T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116426#M5794</link>
      <description>&lt;P&gt;Hi Jonas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;One question: the script in the first link add a group in an existing rule (a block rule)?&lt;/P&gt;&lt;P&gt;Ottavio&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 14:51:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116426#M5794</guid>
      <dc:creator>ottis79</dc:creator>
      <dc:date>2021-04-20T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116432#M5795</link>
      <description>&lt;P&gt;The script in the first link adds hosts to an existing group. It allows you to use a single rule at a convenient place in your rulebase. However, please take into account other options for blocking lists of IPs, most of the other solutions are better at scale and from operational efforts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 15:01:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116432#M5795</guid>
      <dc:creator>Jonas_Rosenboom</dc:creator>
      <dc:date>2021-04-20T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116487#M5796</link>
      <description>&lt;P&gt;Hi Jonas, thanks for your explanation.&lt;/P&gt;&lt;P&gt;I have a small question, I'm agree with you that the solution with rest api to create a large number of IPs is not performance way, but in my case the IPs number is very small, Can you help me to understand the api rest with steps to create a rule to block the ip?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;Ottavio&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 08:07:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116487#M5796</guid>
      <dc:creator>ottis79</dc:creator>
      <dc:date>2021-04-21T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116525#M5797</link>
      <description>&lt;P&gt;You can find the full documentation of our API at &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To create a rule blocking a group of IPs take a look at these API commands:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	add-group name "ExampleGroup_BlockIps"
	add-host name "Block_203.0.113.11" ip-address "203.0.113.11" groups "ExampleGroup_BlockIps"
	add-access-rule layer "Network" position "top" source "ExampleGroup_BlockIps"&lt;/LI-CODE&gt;
&lt;P&gt;Feel free to try these out in SmartConsole demo mode!&lt;/P&gt;
&lt;P&gt;BTW: &lt;BR /&gt;If you are interesting in a comprehensive training, we offer course and certification focused on automating tasks with the API:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://training-certifications.checkpoint.com/#/courses/Check%20Point%20Certified%20Automation%20Specialist%20(CCAS)" target="_blank" rel="noopener"&gt;Check Point Certified Automation Specialist (CCAS)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:27:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116525#M5797</guid>
      <dc:creator>Jonas_Rosenboom</dc:creator>
      <dc:date>2021-04-21T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116530#M5798</link>
      <description>&lt;P&gt;Hi Jonas&lt;/P&gt;&lt;P&gt;Many thanks for your help, I will try with your indications.&lt;/P&gt;&lt;P&gt;Is it possible to use add-object-batch with property "group"&amp;nbsp;&lt;SPAN&gt;to create a list number of IPs instead send many add-host request?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:16:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116530#M5798</guid>
      <dc:creator>ottis79</dc:creator>
      <dc:date>2021-04-21T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Block ip address using api rest</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116537#M5799</link>
      <description>&lt;P&gt;I think it's worth mentioning Check Point's management API&amp;nbsp;&lt;EM&gt;is not REST-based&lt;/EM&gt;. If you plan to do this with a client built to make calls to arbitrary REST APIs, it won't work.&lt;/P&gt;
&lt;P&gt;The easiest way to make calls to Check Point's API is with mgmt_cli directly on the management server. To work remotely, you will need a way to work with JSON and a way to make HTTP POST requests (cURL works).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 15:16:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Block-ip-address-using-api-rest/m-p/116537#M5799</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-04-21T15:16:28Z</dc:date>
    </item>
  </channel>
</rss>

