<?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: Heads-up: Management API Remote calls frequency limit in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226569#M8725</link>
    <description>&lt;P&gt;Hey everyone,&lt;BR /&gt;&lt;BR /&gt;Does the change of the value 3 to 100 ( in the red rectangle) can cause any side effect over all the systems using the API ? For example the way that the request is done or the output done by the login command or anything else ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_a649fdf8.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/27601i82D5B34223D0628E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_a649fdf8.png" alt="Snag_a649fdf8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to look for documentation on this file and how It works but can't see anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Kalei&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 14:36:13 GMT</pubDate>
    <dc:creator>oconnork</dc:creator>
    <dc:date>2024-09-13T14:36:13Z</dc:date>
    <item>
      <title>Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/92025#M5047</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;If you're working with remote scripts utilizing Management REST API, please read the below post.&lt;/P&gt;
&lt;P&gt;To enable efficient work of Management REST API clients, starting R81 (expected release date – September 2020) &amp;nbsp;we are going to limit the allowed frequency of the login command for remote API calls only, to 3 logins per admin per domain per minute.&lt;/P&gt;
&lt;P&gt;Any request that will exceed this limit – will by failed by the server with a new error ("Too many requests in a given amount of time").To rule out possible impact, we recommend you to test your solutions which are based REST API once R81 Public EA is available for download.&lt;/P&gt;
&lt;P&gt;Below you can find:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Guidelines for adapting your code to handle the new error&lt;/LI&gt;
&lt;LI&gt;General best practices for login API&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Please do not hesitate to contact us for further consultation.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Handling the new error in case too many login requests in a given time&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Starting &amp;nbsp;R81, login from a remote machine is limited to 3 logins per minute for each admin to a specific domain. Your scripts should catch the error below and try again later:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;retries = 0

DO

    wait for (2^retries) seconds

    result = Do login operation.

    IF result.is_success = true

        retry = false

    ELSE IF result.is_success = false

       IF result.get_error_message = "Too many requests in a given amount of time"

                  retry = true

      ELSE

                  Some other error occurred, stop calling the API.

                  retry = false

    END IF

    retries = retries + 1

WHILE (retry AND (retries &amp;lt; MAX_RETRIES))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;General best practices for login API:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Login&amp;nbsp;to last published session (enter-last-published-session) when you don't need to make any changes or updates. For example, if all commands are of type "show". This is because login for reading and writing has more database overhead than a login for read-only and other publishes will not affect your session.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Example 1&lt;/STRONG&gt;(mgmt_cli)&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli login user "aa" password "aaaa" enter-last-published-session true -f json&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example 2&lt;/STRONG&gt;(Web Services)&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;POST {{server}}/login

Content-Type: application/json



{

  "user" : "aa",

  "password" : "aaaa"

  "enter-last-published-session" : "true"

}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When using the&amp;nbsp;mgmt_cli, reduce the number of logins and logouts to the minimum possible by using sessions, and working within one session..&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Using one session is faster. If you do not explicitly use a session ID (sid), then each command results in this set of operations: login, action, publish, and logout. All these extra operations cause a higher management and database overhead.&lt;/LI&gt;
&lt;LI&gt;Reducing the number of sessions helps you avoid reaching maximum allowed number of concurrent read/write sessions. The maximum is 100.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Bad Practice Example (pseudo code):&lt;/STRONG&gt;&lt;BR /&gt;In this example, API call is being executed without an explicit session-id. This means that each time, four commands are being executed (login,add-host,publish&amp;nbsp;and&amp;nbsp;logout)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;for i=0 to i&amp;lt;100 do:

         mgmt_cli -r true add-host name hosts_list[i] ip-address ip_list[i]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Good Practice Example (pseudo code):&lt;/STRONG&gt;&lt;BR /&gt;In this example, login is done just once. All changes are made in one session, and at the end of the session there is a publish and logout. This saves the overhead of managing multiple login and logout operations on the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;session=`mgmt_cli -r true login --format json| jq -r '.sid'` //  login once and set session id (sid) into a variable

for i=0 to i&amp;lt;100  do:

   mgmt_cli add-host name hosts_list[i] ip-address ip_list[i]  --session-id $session // use the session id for adding hosts in loop

mgmt_cli publish --session-id $session  // publish all changes in one session. Publish occur only once

mgmt_cli logout --session-id $session  // logout once&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Note-&lt;/STRONG&gt;&amp;nbsp;If you have many hundreds of changes, it is best to avoid publishing once at the end of the session. Instead, publish a few times within your session. For example, publish every 100 changes. However, you only need to log in once at the beginning of the session, and log out at the end of the session.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 09:53:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/92025#M5047</guid>
      <dc:creator>Dima_M</dc:creator>
      <dc:date>2020-07-21T09:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/115239#M5753</link>
      <description>&lt;P&gt;Hi Dima,&lt;/P&gt;&lt;P&gt;Thank you for sharing this valuable information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;R81 - Build 287 in my lab and I'm able to run API calls (using my application) with more then the above ratio you mentioned.&lt;/P&gt;&lt;P&gt;I made sure there is more then&lt;SPAN&gt;&amp;nbsp;3 logins per admin per domain per minute so In my lab this issue is not observed&amp;nbsp;while one of my customers has the above described issue and he get's the following error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2021-03-26 11:29:23,417 ERROR com.checkpoint.management.web_api_is.exceptions.WebApiGeneralException.log:50 [qtp901620835-94] - Error message: [Too many requests in a given amount of time]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What can be the reason this happens only to my customer while according to this post this should be default REST configs for all new R81 installations ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-04-05 10:33:43,040 DEBUG {R81} [com.skybox.view.agent.rest.client.generic.platform.EntityLoggingFilter] (EntityLoggingFilter.java:60) &amp;lt;@127.0.0.1:TASK:1&amp;gt; &lt;A href="https://172.x.x.x/web_api/login" target="_blank"&gt;https://172.x.x.x/web_api/login&lt;/A&gt;&lt;BR /&gt;2021-04-05 10:33:44,403 DEBUG {R81} [com.skybox.view.agent.rest.client.generic.platform.EntityLoggingFilter] (EntityLoggingFilter.java:60) &amp;lt;@127.0.0.1:TASK:1&amp;gt; &lt;A href="https://172.x.x.x/web_api/login" target="_blank"&gt;https://172.x.x.x/web_api/login&lt;/A&gt;&lt;BR /&gt;2021-04-05 10:33:47,892 DEBUG {R81} [com.skybox.view.agent.rest.client.generic.platform.EntityLoggingFilter] (EntityLoggingFilter.java:60) &amp;lt;@127.0.0.1:TASK:1&amp;gt; &lt;A href="https://172.x.x.x/web_api/login" target="_blank"&gt;https://172.x.x.x/web_api/login&lt;/A&gt;&lt;BR /&gt;2021-04-05 10:33:49,146 DEBUG {R81} [com.skybox.view.agent.rest.client.generic.platform.EntityLoggingFilter] (EntityLoggingFilter.java:60) &amp;lt;@127.0.0.1:TASK:1&amp;gt; &lt;A href="https://172.x.x.x/web_api/login" target="_blank"&gt;https://172.x.x.x/web_api/login&lt;/A&gt;&lt;BR /&gt;2021-04-05 10:33:49,243 DEBUG {R81} [com.skybox.view.agent.rest.client.generic.platform.EntityLoggingFilter] (EntityLoggingFilter.java:60) &amp;lt;@127.0.0.1:TASK:1&amp;gt; &lt;A href="https://172.x.x.x/web_api/login" target="_blank"&gt;https://172.x.x.x/web_api/login&lt;/A&gt;&lt;BR /&gt;2021-04-05 10:33:50,380 DEBUG {R81} [com.skybox.view.agent.rest.client.generic.platform.EntityLoggingFilter] (EntityLoggingFilter.java:60) &amp;lt;@127.0.0.1:TASK:1&amp;gt; &lt;A href="https://172.x.x.x/web_api/login" target="_blank"&gt;https://172.x.x.x/web_api/login&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 08:04:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/115239#M5753</guid>
      <dc:creator>nissimv</dc:creator>
      <dc:date>2021-04-05T08:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/115765#M5781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just realize that is working because I was running in MDS environment. This issue happens only with single management environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 08:00:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/115765#M5781</guid>
      <dc:creator>nissimv</dc:creator>
      <dc:date>2021-04-11T08:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/147129#M6774</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is this the correct command to disable api throttling?&lt;/P&gt;&lt;P&gt;api throttling off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the correct file to increase the number of logins per time interval?&lt;/P&gt;&lt;P&gt;/opt/CPsuite-R81.10/fw1/api/conf/api-load-control.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 06:47:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/147129#M6774</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2022-04-27T06:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/151918#M6935</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have used 'api throttling off' so I can run some pretty heavy logs requests against the api but have notice that throttling is re-enabled when the management software is patched or upgraded.&lt;/P&gt;&lt;P&gt;Does anyone know a way to maintain the throttling setting through a patch or upgrade?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 13:52:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/151918#M6935</guid>
      <dc:creator>SimonMeadows</dc:creator>
      <dc:date>2022-06-28T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/151940#M6937</link>
      <description>&lt;P&gt;Perhaps a regular cron job that executes this command to ensure its always turned off?&lt;BR /&gt;That said, it's not recommended to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:38:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/151940#M6937</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-06-28T17:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/152664#M6970</link>
      <description>&lt;P&gt;Edit this file and turn it off. If you want to have it off the we do not have to care about any changes on this file in the future.&lt;BR /&gt;&lt;SPAN&gt;/opt/CPsuite-R81.10/fw1/api/conf/api-load-control.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Make the file immuteable. This prevents the system to modify the file.&lt;BR /&gt;&lt;BR /&gt;chattr +i&amp;nbsp;&lt;SPAN&gt;/opt/CPsuite-R81.10/fw1/api/conf/api-load-control.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 08:38:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/152664#M6970</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2022-07-11T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/152794#M6974</link>
      <description>&lt;P&gt;The main issue with doing that is that you also prevent other necessary changes from being made to this file on upgrade.&lt;BR /&gt;Which could create other issues down the road.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:55:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/152794#M6974</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-07-12T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/152852#M6978</link>
      <description>&lt;P&gt;Do not agree. This file is only for throttling opting. The main option on top is to turn it on or off. The other options a detailed options to throttle. So if you do not like throttling, you can disable it and other changes in the future are not relevant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be hones - the only reason for that throttling is that the MDS API is slow, is crashing and working much worse than other APIs. To circumvent these issue you (CheckPoint) just limited access and that's it.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 05:33:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/152852#M6978</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2022-07-13T05:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/170962#M7488</link>
      <description>&lt;P&gt;I have made a python version, because we use the cpapi library to access the mgmt-api. Perhaps others can find a use for this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from cpapi import APIClient, APIClientArgs
from time import sleep
import getpass

warning_color = '\033[91m' #red
reset_color = '\033[0m' #return to normal colour

cp_username="testadmin"
if sys.stdin.isatty():
    cp_password = getpass.getpass("Enter password: ")

apiserver="fwmgmt01.test"
cp_domain="10.20.30.40"
client_args = APIClientArgs(server=apiserver)
with APIClient(client_args) as client:
    if client.check_fingerprint() is False:
        print("Could not get the server's fingerprint - Check connectivity with the server.")
        exit(1)
    # login to server:
    cp_login_retries = 0
    cp_login_retry = True
    while cp_login_retries &amp;lt; 3 and cp_login_retry == True:
        login_res = client.login(cp_username, cp_password, domain=cp_domain)
        if login_res.success is True:
            cp_login_retry = False
        elif login_res.success is False:
            print(warning_color,"Login failed for domain "+cp_domain+":\n{}".format(login_res.error_message),reset_color)
            if login_res.data['code'] == "err_too_many_requests":
                print(f"Retrying {3 - cp_login_retries} time(s)")
                cp_login_retry = True
                for i in range(20, 0, -1):
                print(i, end= ' \r')
                sleep(1)
                cp_login_retries = cp_login_retries+1 
            else:
                print(warning_color,"Login failed for domain "+cp_domain+":\n{}".format(login_res.error_message),reset_color)
                cp_login_retry = False
                continue
            else:
                print("Login unsuccessful to",cp_domain)
                exit()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that this is for logging into a VSX domain. I suppose you can just omit the domain-parameter to log into a non-VSX platform.&lt;/P&gt;&lt;P&gt;After logging in, issue the calls to the API you want. Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;show_vpn_star_response = client.api_call("show-vpn-communities-star",{})
print(show_vpn_star_response)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 14:10:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/170962#M7488</guid>
      <dc:creator>ias_gc-dk</dc:creator>
      <dc:date>2023-02-10T14:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226569#M8725</link>
      <description>&lt;P&gt;Hey everyone,&lt;BR /&gt;&lt;BR /&gt;Does the change of the value 3 to 100 ( in the red rectangle) can cause any side effect over all the systems using the API ? For example the way that the request is done or the output done by the login command or anything else ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_a649fdf8.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/27601i82D5B34223D0628E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_a649fdf8.png" alt="Snag_a649fdf8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to look for documentation on this file and how It works but can't see anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Kalei&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 14:36:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226569#M8725</guid>
      <dc:creator>oconnork</dc:creator>
      <dc:date>2024-09-13T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226583#M8726</link>
      <description>&lt;P&gt;What precise file are you're looking at?&lt;BR /&gt;From what I understand, these limits are in place to ensure the API server remains performant.&lt;BR /&gt;Changing these limits to higher values may cause performance issues and should only be done per explicit instructions from TAC.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 14:57:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226583#M8726</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-09-13T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226586#M8727</link>
      <description>&lt;P&gt;the file is&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;api-load-control.xml and actually need it for multiples usage for scripts..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;For example, in MDS environment, if I want to connect to a domain, I will login on that domain, received the sid linked to this domain and do the stuff with this sid, but now if I want to do another action on another domain, I must login again and can't use the previous sid for that.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thus, If we have then more than 3 domains, It's very limited the action you can do over all the domains...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; Is there a way to use the same sid to connect to a different domain without using the API login again ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 15:09:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226586#M8727</guid>
      <dc:creator>oconnork</dc:creator>
      <dc:date>2024-09-13T15:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226608#M8729</link>
      <description>&lt;P&gt;Looks like it's in $FWDIR/api/conf/api-load-control.conf.&lt;BR /&gt;To do something across multiple domains, you would have to serialize the requests (versus attempting to do them in parallel).&lt;/P&gt;
&lt;P&gt;In any case, I don't believe it is possible to reuse a sid across multiple domains currently.&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;any other ideas here?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 19:30:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226608#M8729</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-09-13T19:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226627#M8731</link>
      <description>&lt;P&gt;I believe CheckPoint can not provide performant REST API so to avoid tickets they created this throttling.&lt;/P&gt;
&lt;P&gt;However - we are running this official command to disable the limit to make sure ource business processes are working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;api throttling off&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 20:45:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226627#M8731</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2024-09-13T20:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226628#M8732</link>
      <description>&lt;P&gt;That sounds like a much better approach IMO than editing configuration files that aren't documented.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 23:56:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226628#M8732</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-09-13T23:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226654#M8733</link>
      <description>&lt;P&gt;The session ID "sid" is unique and valid ONLY for one login call.&lt;/P&gt;
&lt;P&gt;If you want to execute API commands on different domain, you need to login to that domain and get new "sid". If you want to execute any API calls from the domain for which you already logged in (but not logged out yet), you just need to specify "sid" relevant for that ONE domain. If you know your API calls will last longer than 10 minutes (default session timeout), then you can increase session duration by adding parameter "session-timeout" into initial login API call.&lt;/P&gt;
&lt;P&gt;As an example, you have MDS with 3 domains. You dont know name, you dont know IP of these 3 domains. But you do know MDS IP so you can get data from MDS relevant for all 3 domains. You need to create 4 sessions as following:&lt;/P&gt;
&lt;P&gt;1. login into MDS to get data from all 3 domains.&lt;/P&gt;
&lt;P&gt;2. login into first domain and do whatever you need within this session&lt;/P&gt;
&lt;P&gt;3.login into second domain and do whatever you need within this session&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;login into third domain and do whatever you need within this session&lt;/P&gt;
&lt;P&gt;If you are done with your job on MDS or any of 3 domains, you need to publish the changes (if some were made) within that one session for specific domain, and logout using&amp;nbsp;that one session for specific domain.&lt;/P&gt;
&lt;P&gt;In short, you cannot expect that all shop's doors will be opened in your town if you approach one specific shop. You need to be physically present in front of that shop first.&lt;/P&gt;
&lt;P&gt;Please also read &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?ref=blog.meister-security.de#tips_best_practices~v1.9.1%20" target="_blank" rel="noopener"&gt;API management Tips &amp;amp; Best Practises&lt;/A&gt;&amp;nbsp;guide.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2024 06:39:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226654#M8733</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2024-09-14T06:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226711#M8734</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;Well, my script is already&amp;nbsp;&lt;SPAN&gt;serializing the request but It needs to go through like 9 domains in less than a minute to do some host deletion on them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simple usecase, removing a local host with a certain IP from all domains... I will need obviously to create 9 sessions to theses 9 domains and this will be done in less than one minute..&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1702"&gt;@JozkoMrkvicka&lt;/a&gt;&amp;nbsp; I know how to login on different domains, the question was to avoid using multiples sid to get in multiples domains and by so avoiding to have more than 3 login api calls but looks not possible following all feedback here..&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6901"&gt;@Alexander_Wilke&lt;/a&gt;&amp;nbsp;, I was more thinking of at least rising the number of allowed login api calls per minutes to the number of domains that I have - IMO It'll solve all login issue as soon as I can have at least one open session for each domains that I have within a single minute. Sounds more reasonable solution instead of disabling the whole thing.&lt;/P&gt;&lt;P&gt;But still, the file is not at all documented so I'm not confident on how to proceed and the possible outcome from doing that..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 08:25:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226711#M8734</guid>
      <dc:creator>oconnork</dc:creator>
      <dc:date>2024-09-16T08:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226814#M8735</link>
      <description>&lt;P&gt;Curious what's driving the requirement to do nine domains in under a minute.&lt;BR /&gt;Also curious if the script works when you disable the throttling with the CLI command?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 15:11:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226814#M8735</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-09-16T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Heads-up: Management API Remote calls frequency limit</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226879#M8737</link>
      <description>&lt;P&gt;It's not "required" to run the script under a minute but will for sure be way faster than waiting 1 minute every 3 domains crossed... And actually I don't have 9 domain but 22 domains!!&amp;nbsp; So to cross all of them I'll need 22/3 = 8 minutes in total to go through all domains...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Didn't tried yet to disable the api throttling as i don't have any documentation on this command either.. Where Is It possible to have information on this ? Impact ? Need to restart the MDM ? Need to restart the api ? anything else to know about this command ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 06:36:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Heads-up-Management-API-Remote-calls-frequency-limit/m-p/226879#M8737</guid>
      <dc:creator>oconnork</dc:creator>
      <dc:date>2024-09-17T06:36:23Z</dc:date>
    </item>
  </channel>
</rss>

