<?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: checkpoint mgmt API - show-access-rulebase in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201558#M8261</link>
    <description>&lt;P&gt;Hi Kyle KernelCave,&lt;/P&gt;&lt;P&gt;There is no proxy configured in between automation server &amp;amp; MDS. I am using below syntax as a payload.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tested in postman. Please find attached snap.&lt;/P&gt;&lt;P&gt;When I change&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;"use-object-dictionary"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;True then its working .. but that is not my requirement.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am suspecting that MDS is taking time to send the response. but even I have increase default response timeout to 900 ..still its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 27 Dec 2023 08:52:59 GMT</pubDate>
    <dc:creator>sid786</dc:creator>
    <dc:date>2023-12-27T08:52:59Z</dc:date>
    <item>
      <title>checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201538#M8258</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;MDS version - R81.10 JH 90&lt;/P&gt;&lt;P&gt;API version - 1.8.1&lt;/P&gt;&lt;P&gt;I am running python script to get the output of&amp;nbsp;show-access-rulebase.&lt;/P&gt;&lt;P&gt;when I set&amp;nbsp; attribute (&lt;SPAN&gt;"use-object-dictionary"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) then I am getting below error. but when I set this attribute to true then I am getting proper response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please suggest any workaround for this issue. I want response output with&amp;nbsp;"use-object-dictionary": &lt;STRONG&gt;false ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to increase response timeout from default 600 to 1000 but no luck. We are not using any proxy in between .. Its a direct connection to Checkpoint mgmt API&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;++++++++++++++ Error msg from postman++++++++++&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE&lt;/SPAN&gt;&lt;SPAN&gt; HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;html&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;head&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&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sp; &amp;nbsp; response from an upstream server.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;br&lt;/SPAN&gt; &lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The proxy server could not handle the request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;p&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;Reason: &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;strong&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;Error reading from remote server&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;strong&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;p&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;p&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;html&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Dec 2023 16:53:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201538#M8258</guid>
      <dc:creator>sid786</dc:creator>
      <dc:date>2023-12-26T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201539#M8259</link>
      <description>&lt;P&gt;Can you share your code?&lt;/P&gt;&lt;P&gt;There's an example of how this should work in the API documentation:&lt;/P&gt;&lt;PRE&gt;POST {{server}}/show-access-rulebase
Content-Type: application/json
X-chkp-sid: {{session}}

{
  "offset" : 0,
  "limit" : 20,
  "name" : "Network",
  "details-level" : "standard",
  "use-object-dictionary" : true
}&lt;/PRE&gt;&lt;P&gt;The&amp;nbsp;"use-object-dictionary" key should be part of the payload that you send with your POST request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also looks like you're getting a&amp;nbsp;502 error. Is there a proxy or firewall between your machine making the API request and the MDS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional question, since you're working with an MDS are you making sure to login to the CMA context that you want to query after you login to the MDS?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 17:09:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201539#M8259</guid>
      <dc:creator>Kyle_KernelCave</dc:creator>
      <dc:date>2023-12-26T17:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201540#M8260</link>
      <description>&lt;P&gt;"use-object-dictionary":false definitely works in general. I've made every single show-access-rulebase call with that setting for years.&lt;/P&gt;
&lt;P&gt;What does the rest of your call look like?&lt;/P&gt;
&lt;P&gt;I don't remember if I have tried on R81.10 jumbo 90 specifically, but I've tried on 87 and 109.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 18:39:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201540#M8260</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-12-26T18:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201558#M8261</link>
      <description>&lt;P&gt;Hi Kyle KernelCave,&lt;/P&gt;&lt;P&gt;There is no proxy configured in between automation server &amp;amp; MDS. I am using below syntax as a payload.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tested in postman. Please find attached snap.&lt;/P&gt;&lt;P&gt;When I change&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;"use-object-dictionary"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;True then its working .. but that is not my requirement.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am suspecting that MDS is taking time to send the response. but even I have increase default response timeout to 900 ..still its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Dec 2023 08:52:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201558#M8261</guid>
      <dc:creator>sid786</dc:creator>
      <dc:date>2023-12-27T08:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201559#M8262</link>
      <description>&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;Please find my attached payload for this request.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 08:56:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201559#M8262</guid>
      <dc:creator>sid786</dc:creator>
      <dc:date>2023-12-27T08:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201603#M8263</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Issue got resolved. I just tweak the &lt;STRONG&gt;Limit attribute from 500 to 300&lt;/STRONG&gt; and its works with&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"use-object-dictionary"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I got all the rules from rulebase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 13:56:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201603#M8263</guid>
      <dc:creator>sid786</dc:creator>
      <dc:date>2023-12-27T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201605#M8264</link>
      <description>&lt;P&gt;Thanks for sharing&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 14:06:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201605#M8264</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2023-12-27T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201626#M8267</link>
      <description>&lt;P&gt;I assume the underlying issue is the API server ran out of memory or similar.&lt;BR /&gt;This is one reason we limit the number of results the API will return.&lt;BR /&gt;Might still be worth a TAC case as the API should return a more meaningful error when this occurs.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 19:00:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201626#M8267</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-12-27T19:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint mgmt API - show-access-rulebase</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201667#M8269</link>
      <description>&lt;P&gt;Sure&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;I will check this with TAC. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 07:53:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/checkpoint-mgmt-API-show-access-rulebase/m-p/201667#M8269</guid>
      <dc:creator>sid786</dc:creator>
      <dc:date>2023-12-28T07:53:01Z</dc:date>
    </item>
  </channel>
</rss>

