<?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: Management API Best Practices TechTalk and Q&amp;A in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33293#M2059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an edited version of the questions asked during the TechTalk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to automate installing policy via script?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/install-policy~v1.4%20"&gt;install-policy API&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;How do I show all packages from a specific DMS on an MDS, by using web API calls?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The API call is &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-packages~v1.4%20"&gt;show-packages&lt;/A&gt;. You would login against the DMS you wish to see the specific policy packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to build a web interface for site admins to manage some basic task using API, but I'm not a professional developer. Is there any easy way/ tool to do this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;There are a couple examples of this on CheckMates you can hack. Couple examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.checkpoint.com/thread/11140"&gt;Simple API Web Interface for DEMO&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-3411"&gt;Management API Web Interface for Check Point R80.20 for API version 1.3&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to use the API to change the tracking settings of firewall rules in bulk?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In general, yes, but the API will only work on one rule at a time.&lt;/P&gt;&lt;P&gt;You will have to write a script/program that iterates through each rule.&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;A href="https://community.checkpoint.com/thread/11289"&gt;API - SmartConsole CLi - usual script commands like error check, if then etc.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If i use the mgmt-cli, what is the actual timeout for the session key? Can I change it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The default timeout is 600 seconds (10 minutes) and is an activity timeout.&lt;/P&gt;&lt;P&gt;You can extend it by passing the session-timeout parameter to the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/login~v1.4%20"&gt;login command/API call&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;It seems like limit is not 500 if you define it manually. I was able to receive about 700 rules via API using limit=1000&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The actual limit for each API call varies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;While it is possible to go above these limits, we do not recommend it as the API calls may take a long time to complete and/or provide unpredictable results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;In new Ver1.4 can we create local users via the API?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;While there is no formal API support for this as of yet, this can be done via generic-object API calls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;See:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-2844"&gt;Add new user and assign to an existing group using the generic-object API calls&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Runtime error: You have reached the maximum number of active sessions. Ask another administrator to discard or publish some of your sessions.............. Can we discard session via API?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, using the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/publish~v1.4%20"&gt;publish&lt;/A&gt; and &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/discard~v1.4%20"&gt;discard&lt;/A&gt; APIs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How to configure Postman?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Using the collections we've posted to CheckMates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;See:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-3463"&gt;Postman Collections (links to all available) and the basics&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Is there a Python library?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, &lt;A href="https://community.checkpoint.com/docs/DOC-1091"&gt;Python library for using R80 management server APIs&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;It's also installable via pip as well:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk" title="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk"&gt;GitHub - CheckPointSW/cp_mgmt_api_python_sdk: Check Point API Python Development Kit&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How to troubleshoot issues with the R80.x Management API?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Start with the command: api status -s&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This collects the necessary log files into a tgz file that can be sent to TAC or reviewed on your own.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Is there a way how to merge 2 overlapping policies into one, avoiding to have duplicate rules in the final policy?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Theoretically, yes, but you would have to write the logic for this to analyze both rulebases to come up with the final merged one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Check Point does offer a service called &lt;A href="https://www.checkpoint.com/support-services/design-deploy-operate-optimize/smartoptimize/"&gt;SmartOptimize&lt;/A&gt; that can assist with this task as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Are there Ansible modules?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, see:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-1928"&gt;Automate your R80 Management Server using Ansible&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Is jq available on R80.x?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes it is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How current is the integration with AlgoSec or similar tools regarding automation , etc... if there are some gaps Do you recommend i.e. Python...?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The management APIs have been available for a few years now, starting with the R80 release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;We worked with a number of vendors prior to the R80 release to ensure they could leverage the newer APIs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;You would have to discuss with your vendor of choice to see where they are at with regards to policy automation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Can you schedule a policy push using an API, at a specific time?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The API does not support this, but you can decide when to make the API call to push policy (e.g. programmatically or via a cron job).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How do I create objects for which there is no specific API call?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;You need to use the generic-object API call for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;A couple starting points:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.checkpoint.com/message/18729"&gt;How to find generic-object that is not defined in the API?&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.checkpoint.com/message/39047"&gt;class names available for use with the "show-generic-objects" API command&lt;/A&gt;‌&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;A few things to keep in mind when using generic-object API calls:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Where possible, always use official API calls as they are fully supported and backward/forward compatible.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;generic-object API calls are&amp;nbsp;&lt;STRONG&gt;not documented&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;not guaranteed to remain consistent between versions&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Even with the generic-object API call, some objects cannot be created and may require assistance from dbedit and/or SmartConsole.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;What is the best practice method to automatically allow API calls from all IP addresses without going through the MGMT server GUI to allow that and then manually have to do an API restart?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This can be done with the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-api-settings~v1.4%20"&gt;set api-settings API/CLI command.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note that a restart of the API server is still required for this to take effect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;When using Anisble we had some issue running the database override&amp;nbsp;&lt;/SPAN&gt;command, it would sometimes allow us to run other clish command and other time it would not and DB will be locked or complain about user. Has this been fixed or is there a solution?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;We have a gateway-specific API now available: &lt;A href="https://community.checkpoint.com/community/infinity-general/appliances-and-gaia/blog/2019/01/21/new-gaia-features-dynamic-cli-and-rest-api-are-available?sr=search&amp;amp;searchId=001ca03d-09c5-4fda-b277-8d2a5768112e&amp;amp;searchIndex=5"&gt;https://community.checkpoint.com/community/infinity-general/appliances-and-gaia/blog/2019/01/21/new-gaia-features-dynamic-cli-and-rest-api-are-available?sr=search&amp;amp;searchId=001ca03d-09c5-4fda-b277-8d2a5768112e&amp;amp;searchIndex=5&lt;/A&gt;‌&lt;/P&gt;&lt;P class=""&gt;An Ansible module does not exist yet to leverage this API, but it is coming soon.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;What calls are possible for VS provisioning in VSX?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The API does not directly support provisioning VSes in VSX yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;However, using &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/run-script~v1.4%20"&gt;run-script&lt;/A&gt; or the Gaia API, you can call &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk100645"&gt;vsx_provisioning_tool&lt;/A&gt; to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;If using script calling old version (let say 1.0) on most recent management server API (let say 1.4) - will it understand it?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Provided you specify the 1.0 version in your API endpoint or specify the version via mgmt_cli, yes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2019 18:16:26 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-02-13T18:16:26Z</dc:date>
    <item>
      <title>Management API Best Practices TechTalk and Q&amp;A</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33291#M2057</link>
      <description>&lt;P&gt;In this session, &lt;A href="https://community.checkpoint.com/migrated-users/45404" target="_blank" rel="noopener"&gt;Ryan Darst&lt;/A&gt; talks about leveraging Check Point APIs for automation purposes. He lays out the best practices, gotchas, and will demonstrate some interesting automation cases. Content is available to CheckMates members who are signed in.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Full Video:&amp;nbsp;&lt;A href="https://community.checkpoint.com/videos/10969" target="_blank" rel="noopener"&gt;Management API Best Practices Video&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Audio:&amp;nbsp;&lt;A class="link-titled" title="https://soundcloud.com/cpcheckmates/management-api-best-practices" href="https://soundcloud.com/cpcheckmates/management-api-best-practices" target="_blank" rel="noopener"&gt;Management API Best Practices by Check Point CheckMates&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Slides:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-3542" target="_blank" rel="noopener"&gt;API Best Practices CheckMates Feb 2019&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Q&amp;amp;A will be posted as comments below.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Scripts are attached to this message.&lt;/P&gt;
&lt;P&gt;Excerpt of session video:&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-NkZm9maDE6M1-03FkGQoOSxYB6T_A-DQw1600h1000r616" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6065295751001" 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-NkZm9maDE6M1-03FkGQoOSxYB6T_A-DQw1600h1000r616');  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/NkZm9maDE6M1-03FkGQoOSxYB6T_A-DQ"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 14:50:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33291#M2057</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-04-16T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Best Practices TechTalk and Q&amp;A</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33292#M2058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Very good session&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:50:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33292#M2058</guid>
      <dc:creator>3edaabb5-9f84-4</dc:creator>
      <dc:date>2019-02-13T17:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Best Practices TechTalk and Q&amp;A</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33293#M2059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an edited version of the questions asked during the TechTalk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to automate installing policy via script?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/install-policy~v1.4%20"&gt;install-policy API&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;How do I show all packages from a specific DMS on an MDS, by using web API calls?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The API call is &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-packages~v1.4%20"&gt;show-packages&lt;/A&gt;. You would login against the DMS you wish to see the specific policy packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to build a web interface for site admins to manage some basic task using API, but I'm not a professional developer. Is there any easy way/ tool to do this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;There are a couple examples of this on CheckMates you can hack. Couple examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.checkpoint.com/thread/11140"&gt;Simple API Web Interface for DEMO&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-3411"&gt;Management API Web Interface for Check Point R80.20 for API version 1.3&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to use the API to change the tracking settings of firewall rules in bulk?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In general, yes, but the API will only work on one rule at a time.&lt;/P&gt;&lt;P&gt;You will have to write a script/program that iterates through each rule.&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;A href="https://community.checkpoint.com/thread/11289"&gt;API - SmartConsole CLi - usual script commands like error check, if then etc.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If i use the mgmt-cli, what is the actual timeout for the session key? Can I change it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The default timeout is 600 seconds (10 minutes) and is an activity timeout.&lt;/P&gt;&lt;P&gt;You can extend it by passing the session-timeout parameter to the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/login~v1.4%20"&gt;login command/API call&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;It seems like limit is not 500 if you define it manually. I was able to receive about 700 rules via API using limit=1000&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The actual limit for each API call varies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;While it is possible to go above these limits, we do not recommend it as the API calls may take a long time to complete and/or provide unpredictable results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;In new Ver1.4 can we create local users via the API?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;While there is no formal API support for this as of yet, this can be done via generic-object API calls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;See:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-2844"&gt;Add new user and assign to an existing group using the generic-object API calls&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Runtime error: You have reached the maximum number of active sessions. Ask another administrator to discard or publish some of your sessions.............. Can we discard session via API?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, using the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/publish~v1.4%20"&gt;publish&lt;/A&gt; and &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/discard~v1.4%20"&gt;discard&lt;/A&gt; APIs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How to configure Postman?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Using the collections we've posted to CheckMates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;See:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-3463"&gt;Postman Collections (links to all available) and the basics&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Is there a Python library?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, &lt;A href="https://community.checkpoint.com/docs/DOC-1091"&gt;Python library for using R80 management server APIs&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;It's also installable via pip as well:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk" title="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk"&gt;GitHub - CheckPointSW/cp_mgmt_api_python_sdk: Check Point API Python Development Kit&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How to troubleshoot issues with the R80.x Management API?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Start with the command: api status -s&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This collects the necessary log files into a tgz file that can be sent to TAC or reviewed on your own.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Is there a way how to merge 2 overlapping policies into one, avoiding to have duplicate rules in the final policy?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Theoretically, yes, but you would have to write the logic for this to analyze both rulebases to come up with the final merged one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Check Point does offer a service called &lt;A href="https://www.checkpoint.com/support-services/design-deploy-operate-optimize/smartoptimize/"&gt;SmartOptimize&lt;/A&gt; that can assist with this task as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Are there Ansible modules?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, see:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-1928"&gt;Automate your R80 Management Server using Ansible&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Is jq available on R80.x?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes it is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How current is the integration with AlgoSec or similar tools regarding automation , etc... if there are some gaps Do you recommend i.e. Python...?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The management APIs have been available for a few years now, starting with the R80 release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;We worked with a number of vendors prior to the R80 release to ensure they could leverage the newer APIs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;You would have to discuss with your vendor of choice to see where they are at with regards to policy automation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Can you schedule a policy push using an API, at a specific time?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The API does not support this, but you can decide when to make the API call to push policy (e.g. programmatically or via a cron job).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;How do I create objects for which there is no specific API call?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;You need to use the generic-object API call for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;A couple starting points:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.checkpoint.com/message/18729"&gt;How to find generic-object that is not defined in the API?&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.checkpoint.com/message/39047"&gt;class names available for use with the "show-generic-objects" API command&lt;/A&gt;‌&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;A few things to keep in mind when using generic-object API calls:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Where possible, always use official API calls as they are fully supported and backward/forward compatible.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;generic-object API calls are&amp;nbsp;&lt;STRONG&gt;not documented&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;not guaranteed to remain consistent between versions&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Even with the generic-object API call, some objects cannot be created and may require assistance from dbedit and/or SmartConsole.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;What is the best practice method to automatically allow API calls from all IP addresses without going through the MGMT server GUI to allow that and then manually have to do an API restart?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This can be done with the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-api-settings~v1.4%20"&gt;set api-settings API/CLI command.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note that a restart of the API server is still required for this to take effect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;When using Anisble we had some issue running the database override&amp;nbsp;&lt;/SPAN&gt;command, it would sometimes allow us to run other clish command and other time it would not and DB will be locked or complain about user. Has this been fixed or is there a solution?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;We have a gateway-specific API now available: &lt;A href="https://community.checkpoint.com/community/infinity-general/appliances-and-gaia/blog/2019/01/21/new-gaia-features-dynamic-cli-and-rest-api-are-available?sr=search&amp;amp;searchId=001ca03d-09c5-4fda-b277-8d2a5768112e&amp;amp;searchIndex=5"&gt;https://community.checkpoint.com/community/infinity-general/appliances-and-gaia/blog/2019/01/21/new-gaia-features-dynamic-cli-and-rest-api-are-available?sr=search&amp;amp;searchId=001ca03d-09c5-4fda-b277-8d2a5768112e&amp;amp;searchIndex=5&lt;/A&gt;‌&lt;/P&gt;&lt;P class=""&gt;An Ansible module does not exist yet to leverage this API, but it is coming soon.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;What calls are possible for VS provisioning in VSX?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The API does not directly support provisioning VSes in VSX yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;However, using &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/run-script~v1.4%20"&gt;run-script&lt;/A&gt; or the Gaia API, you can call &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk100645"&gt;vsx_provisioning_tool&lt;/A&gt; to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;If using script calling old version (let say 1.0) on most recent management server API (let say 1.4) - will it understand it?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Provided you specify the 1.0 version in your API endpoint or specify the version via mgmt_cli, yes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:16:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/33293#M2059</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-02-13T18:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Best Practices TechTalk and Q&amp;A</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/52048#M3375</link>
      <description>&lt;P&gt;We released official section for best practices as part of our API reference&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/best_practices~v1.4%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/best_practices~v1.4%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 09:39:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/52048#M3375</guid>
      <dc:creator>Amiad_Stern</dc:creator>
      <dc:date>2019-04-28T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Best Practices TechTalk and Q&amp;A</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/153953#M7016</link>
      <description>&lt;P&gt;The URL has changed. Now it is:&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#tips_best_practices" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#tips_best_practices&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 09:29:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/153953#M7016</guid>
      <dc:creator>Václav_Brožík</dc:creator>
      <dc:date>2022-07-27T09:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Best Practices TechTalk and Q&amp;A</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/153956#M7017</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/5657"&gt;@Václav_Brožík&lt;/a&gt;, I hope you realize the original URL was posted by&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/186"&gt;@Amiad_Stern&lt;/a&gt;&amp;nbsp;three years ago &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 10:15:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Best-Practices-TechTalk-and-Q-amp-A/m-p/153956#M7017</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2022-07-27T10:15:41Z</dc:date>
    </item>
  </channel>
</rss>

