<?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: Automating Security Operations with the Check Point APIs TechTalk, Q&amp;amp;A, and Slides in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65707#M4045</link>
    <description>&lt;H3&gt;Which version of R80.x corresponds to v1.5?&lt;/H3&gt;
&lt;P&gt;R80.30. You can see a complete list here:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#api_versions~v1.5%20" target="_self"&gt;API Versions&lt;/A&gt;&lt;/P&gt;
&lt;H3&gt;Where are these commands run from?&lt;/H3&gt;
&lt;P&gt;You can use any REST client to generate these commands. You can also use them from the CLI of a Check Point Management device using mgmt_cli.&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;For mgmt_cli calls using powershell, is there a way to properly discard the session after use?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;This should happen when you use the logout API call after your session completes. If this is not the case for you, best to open a TAC case so we can investigate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="s1"&gt;Can You Manipulate VSX Objects with the API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;You can refer to individual VS objects with the API, but you cannot manipulate those objects currently.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="s1"&gt;Can You Set the Shared Secret (Passphrase) for VPN using the API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Yes. See&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-vpn-community-meshed~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-vpn-community-meshed~v1.5%20&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;What is the behavior in case of some "error" ? (like name of object already exists - error, or there is a different object with same IP address - a warning)&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;The API provides error messages to this effect, as will Backbox.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Why is "Last Modified" admin instead of API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Because you authenticate to the API using the same credentials as SmartConsole and, in the examples here, the user "admin" was used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Using api, can we move policies and objects from one management/CMA to another?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Not directly, but you can read the desired information using the API from one management/CMA and write it to another. The&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829" target="_self"&gt;Python tool for exporting/importing a policy package or parts of it&lt;/A&gt;&amp;nbsp;works on this premise.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Is this process of automation through API available for SmartEndpoint too?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Not yet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;How do I identify hosts, which I would like to delete, but they are somehow used in a policy rule? Is there a way to find those dependencies, delete the objects, but perhaps prevent a cell where the objects is the last one? (prevent an "Any" cell)?!&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;This is potentially doable through the API, but will require a few different calls to achieve. &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/where-used~v1.5%20" target="_self"&gt;where-used&lt;/A&gt;&amp;nbsp;will tell you where a given object is used. You would have to manually interrogate each rule to validate it is not the last object in a cell.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Can you make any reporting API requests related to the lifecycle of the device (e.g. end of support date), contract data (e.g. start date, end date, etc)?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;There are no direct API calls for this, but you could use run-script to run the necessary CLI commands to do this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 20:40:46 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-10-23T20:40:46Z</dc:date>
    <item>
      <title>Automating Security Operations with the Check Point APIs TechTalk, Q&amp;A, and Slides</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65699#M4044</link>
      <description>&lt;P&gt;On 23rd October 2019,&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/20398"&gt;@Rafi_Zvi&lt;/a&gt;&amp;nbsp;from Backbox talked about automating security operations using the Check Point APIs and Backbox.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Content available to CheckMates members:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/fyrhh23835/attachments/fyrhh23835/member-exclusives/420/1/Checkmates_BackBox.cleaned.pptx" target="_self"&gt;Slides&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/Member-Exclusive-Content/Utilizing-the-Check-Point-API-to-Automate-Operations-TechTalk/m-p/65711#M420" target="_self"&gt;Video&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Except below.&lt;BR /&gt;Q&amp;amp;A from the session will be posted as comments.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-NqbTlvaTE6gGBnrQRQzSIXL65eSlVhJGw1280h720r477" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="1667782414743584174" data-account="6058022097001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022097001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-NqbTlvaTE6gGBnrQRQzSIXL65eSlVhJGw1280h720r477');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.checkpoint.com/t5/video/gallerypage/video-id/NqbTlvaTE6gGBnrQRQzSIXL65eSlVhJG"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 03:32:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65699#M4044</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-10-25T03:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Security Operations with the Check Point APIs TechTalk, Q&amp;A, and Slides</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65707#M4045</link>
      <description>&lt;H3&gt;Which version of R80.x corresponds to v1.5?&lt;/H3&gt;
&lt;P&gt;R80.30. You can see a complete list here:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#api_versions~v1.5%20" target="_self"&gt;API Versions&lt;/A&gt;&lt;/P&gt;
&lt;H3&gt;Where are these commands run from?&lt;/H3&gt;
&lt;P&gt;You can use any REST client to generate these commands. You can also use them from the CLI of a Check Point Management device using mgmt_cli.&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;For mgmt_cli calls using powershell, is there a way to properly discard the session after use?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;This should happen when you use the logout API call after your session completes. If this is not the case for you, best to open a TAC case so we can investigate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="s1"&gt;Can You Manipulate VSX Objects with the API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;You can refer to individual VS objects with the API, but you cannot manipulate those objects currently.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="s1"&gt;Can You Set the Shared Secret (Passphrase) for VPN using the API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Yes. See&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-vpn-community-meshed~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-vpn-community-meshed~v1.5%20&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;What is the behavior in case of some "error" ? (like name of object already exists - error, or there is a different object with same IP address - a warning)&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;The API provides error messages to this effect, as will Backbox.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Why is "Last Modified" admin instead of API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Because you authenticate to the API using the same credentials as SmartConsole and, in the examples here, the user "admin" was used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Using api, can we move policies and objects from one management/CMA to another?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Not directly, but you can read the desired information using the API from one management/CMA and write it to another. The&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829" target="_self"&gt;Python tool for exporting/importing a policy package or parts of it&lt;/A&gt;&amp;nbsp;works on this premise.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Is this process of automation through API available for SmartEndpoint too?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Not yet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;How do I identify hosts, which I would like to delete, but they are somehow used in a policy rule? Is there a way to find those dependencies, delete the objects, but perhaps prevent a cell where the objects is the last one? (prevent an "Any" cell)?!&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;This is potentially doable through the API, but will require a few different calls to achieve. &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/where-used~v1.5%20" target="_self"&gt;where-used&lt;/A&gt;&amp;nbsp;will tell you where a given object is used. You would have to manually interrogate each rule to validate it is not the last object in a cell.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Can you make any reporting API requests related to the lifecycle of the device (e.g. end of support date), contract data (e.g. start date, end date, etc)?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;There are no direct API calls for this, but you could use run-script to run the necessary CLI commands to do this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 20:40:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65707#M4045</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-10-23T20:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Security Operations with the Check Point APIs TechTalk, Q&amp;A, and Slides</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65862#M4054</link>
      <description>&lt;P&gt;More Q&amp;amp;A&lt;/P&gt;
&lt;H3 class="p1"&gt;I need to make a query where I can see the vpn users and see his permissions&lt;/H3&gt;
&lt;P&gt;Currently, there is no official API for locally defined users. You can query them by means of the generic-object API. The following will give you JSON output of all VPN users:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;mgmt_cli -r true --format json show generic-objects class-name com.checkpoint.objects.classes.dummy.CpmiUser | jq .objects[].uid | while read X; do mgmt_cli -r true --format json show generic-object uid $X; done&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Additional parsing with jq can give you exactly the data you're looking for.&amp;nbsp;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Can I export output of commands typed via SmartConsole CLI into a file please?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;The SmartConsole CLI is a shell similar to clish that doesn't allow for output redirect. If you require this functionality, use mgmt_cli, which can be executed from Windows.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="s1"&gt;Where can I find more details about the Gaia API?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#introduction" target="_self"&gt;The Gaia API Documentation&lt;/A&gt;&amp;nbsp;and &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk143612" target="_self"&gt;sk143612&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;In what version will the GAIA API be included natively and enabled by default?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;I believe this is targeted for R80.40.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Does executing API calls to the gateway still have to work around the ‘lock database’ issue?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Yes, only one process can make changes to the gateway configuration at a time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Will you be able to complete any type of logging and monitoring queries via API in the future? E.g. for un-attended log/health check methods potentially.&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;You can use run-script API to run whatever monitoring you’d like. Logging will eventually have API support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Is the Gaia API available on SMB appliances?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Not currently.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;How can I search as I would in the search bar via API? Something like: 'Show me where Check_Mate_Host AND port 22 are used?"&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Not directly, but this could be done with where-used and parsing the results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="s1"&gt;What about API support for Gateway Cluster objects?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;Currently planned for R80.40.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;After we delete a object, or group using the API, how would we know what firewalls to push to implement the change?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;You could probably determine this by using there where-used API call.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3 class="p1"&gt;&lt;SPAN class="s1"&gt;Is it easy to limit what kind of API access a particular user has?&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;The API follows the same permission profiles that SmartConsole uses. If the user has access to something via SmartConsole and the permission profile grants API access, they have access via API as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 03:30:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Automating-Security-Operations-with-the-Check-Point-APIs/m-p/65862#M4054</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-10-25T03:30:30Z</dc:date>
    </item>
  </channel>
</rss>

