<?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: Where-Used Indirect Limited Results in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Indirect-Limited-Results/m-p/89101#M4964</link>
    <description>&lt;P&gt;Note that EVERY API call that returns more than one results has a limit.&lt;BR /&gt;The exact limit varies based on the API call, but can be as few as 20 or as many as 500.&lt;BR /&gt;Usually, you can figure out if you're being gated by the presence of limit/offset values in the output.&lt;BR /&gt;In that case, you'd make multiple successive API calls using the limit/offset parameters to get all the results.&lt;BR /&gt;While you can increase the limit arbitrarily, it's not recommended as it will cause unpredictable results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I don't even see limit/offset values in the documentation for where-used either as input our output.&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;and team will have to clarify that.&lt;/P&gt;
&lt;P&gt;To this specific example, it's quite possible SmartConsole is actually doing additional processing over the initial where-used call results to get all the results shown.&lt;BR /&gt;Or, SmartConsole is specifying a greater&amp;nbsp;&lt;SPAN&gt;indirect-max-depth than the default of 5 when it does the search.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 21:56:07 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-06-18T21:56:07Z</dc:date>
    <item>
      <title>Where-Used Indirect Limited Results</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Indirect-Limited-Results/m-p/89091#M4961</link>
      <description>&lt;P&gt;Is there a limit to the amount of results that will be returned when a where-used API (v1.5) call is made?&amp;nbsp; I've got a scenario where when I call where-used for a particular object and set indirect to true, Check Point only returns a subset of what I'm expecting.&amp;nbsp; Doing a subsequent where-used call on the specific indirect group name (instead of the host), will return the correct number of results.&amp;nbsp; From what I can tell, this seems to be a limitation for indirect usage only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is a limit, is there a way to increase that number?&amp;nbsp; I tried adding the limit parameter in my data field like some of the other API calls will take, but Check Point returns an unrecognized parameter error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;When doing a where used in SmartConsole and selecting the indirect box, I'll get back a group and 50+ indirect rules.&amp;nbsp; &amp;nbsp;When doing a where-used via an API call on that same object, I'll only get 22 indirect results back.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST "https://&amp;lt;&lt;EM&gt;management_server&lt;/EM&gt;&amp;gt;/web_api/where-used" -H "Content-Type: application/json" -H "X-chkp-sid: &amp;lt;&lt;EM&gt;sid&lt;/EM&gt;&amp;gt;" -d "{\"name\" : \"&amp;lt;&lt;EM&gt;object_name&lt;/EM&gt;&amp;gt;\", \"indirect\" :\"true\"}"&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"used-directly" : {&lt;BR /&gt;"total" : 1,&lt;BR /&gt;"objects" : [ {&lt;BR /&gt;"uid" : "z3efe4b-597d-4cc0-b78a-49aaee6af055",&lt;BR /&gt;"name" : "grp_name_1",&lt;BR /&gt;"type" : "group",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "c3a7c90c-af41-e949-9c2d-wwcaf8a46dcc3",&lt;BR /&gt;"name" : "Domain 1",&lt;BR /&gt;"domain-type" : "domain"&lt;BR /&gt;}&lt;BR /&gt;}&amp;nbsp;],&lt;BR /&gt;"threat-prevention-rules" : [ ],&lt;BR /&gt;"nat-rules" : [ ],&lt;BR /&gt;"access-control-rules" : [ ]&lt;BR /&gt;},&lt;BR /&gt;"used-indirectly" : {&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"total" : 22,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;"objects" : [ {&lt;BR /&gt;"uid" : "zw366a6d-900c-45e2-69b4-266e4e22i85c",&lt;BR /&gt;"name" : "grp_name_2",&lt;BR /&gt;"type" : "group",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "c3a7c90c-af41-e949-9c2d-wwcaf8a46dcc3",&lt;BR /&gt;"name" : "Domain 1",&lt;BR /&gt;"domain-type" : "domain"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:49:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Indirect-Limited-Results/m-p/89091#M4961</guid>
      <dc:creator>nWatne</dc:creator>
      <dc:date>2020-06-18T18:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where-Used Indirect Limited Results</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Indirect-Limited-Results/m-p/89101#M4964</link>
      <description>&lt;P&gt;Note that EVERY API call that returns more than one results has a limit.&lt;BR /&gt;The exact limit varies based on the API call, but can be as few as 20 or as many as 500.&lt;BR /&gt;Usually, you can figure out if you're being gated by the presence of limit/offset values in the output.&lt;BR /&gt;In that case, you'd make multiple successive API calls using the limit/offset parameters to get all the results.&lt;BR /&gt;While you can increase the limit arbitrarily, it's not recommended as it will cause unpredictable results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I don't even see limit/offset values in the documentation for where-used either as input our output.&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;and team will have to clarify that.&lt;/P&gt;
&lt;P&gt;To this specific example, it's quite possible SmartConsole is actually doing additional processing over the initial where-used call results to get all the results shown.&lt;BR /&gt;Or, SmartConsole is specifying a greater&amp;nbsp;&lt;SPAN&gt;indirect-max-depth than the default of 5 when it does the search.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 21:56:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Indirect-Limited-Results/m-p/89101#M4964</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-06-18T21:56:07Z</dc:date>
    </item>
  </channel>
</rss>

