<?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: Anyway I can show all the rules for a section? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194359#M8078</link>
    <description>&lt;P&gt;Sorry, was busy today, had to do bunch of Fortigate stuff, but will try tomorrow, promise.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2023 00:22:32 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2023-10-06T00:22:32Z</dc:date>
    <item>
      <title>Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194254#M8071</link>
      <description>&lt;P&gt;Is there anyway I can show all the rules under a specific section ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks !!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 17:24:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194254#M8071</guid>
      <dc:creator>Gongya_Yu</dc:creator>
      <dc:date>2023-10-04T17:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194270#M8072</link>
      <description>&lt;P&gt;I assume you mean via mgmt_cli/api method?&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 23:52:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194270#M8072</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-04T23:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194274#M8073</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; I showed rule-based to get all the sections based on the suggestion I got from the community. Now I moved to display all the rules in a specific section. I am wondering whether I can specify the section to search the rule base. Now I get the From and To for a section via show rule-based.&amp;nbsp; then use them as offset and limit. It works. but I am wondering whether I can save the first step to get the From and To for a section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks !!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 01:08:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194274#M8073</guid>
      <dc:creator>Gongya_Yu</dc:creator>
      <dc:date>2023-10-05T01:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194275#M8074</link>
      <description>&lt;P&gt;Not sure until I can test it in the lab tomorrow. Whats the command you did? If you can give an example here, I can try it myself in R81.20 lab&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 01:14:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194275#M8074</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-05T01:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194349#M8077</link>
      <description>&lt;P&gt;First I use the following to get the rule range&lt;BR /&gt;show access-rulebase name ' security_package' limit 1200 | grep -A 3 'section'&lt;/P&gt;&lt;P&gt;Then I use the following to get the rules&lt;/P&gt;&lt;P&gt;show access-rulebase name 'security_package' limit " + str(limit) + " offset " + str(offset)&lt;/P&gt;&lt;P&gt;to get the range of rules.&lt;/P&gt;&lt;P&gt;Wondering whether I can combine these 2 into one.&lt;/P&gt;&lt;P&gt;thanks !!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 20:17:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194349#M8077</guid>
      <dc:creator>Gongya_Yu</dc:creator>
      <dc:date>2023-10-05T20:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194359#M8078</link>
      <description>&lt;P&gt;Sorry, was busy today, had to do bunch of Fortigate stuff, but will try tomorrow, promise.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 00:22:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194359#M8078</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-06T00:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194363#M8079</link>
      <description>&lt;P&gt;thanks !!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 01:22:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194363#M8079</guid>
      <dc:creator>Gongya_Yu</dc:creator>
      <dc:date>2023-10-06T01:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194365#M8080</link>
      <description>&lt;P&gt;For you, no charge....EXCEPT iphone charge ; - )&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 01:56:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194365#M8080</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-06T01:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194419#M8082</link>
      <description>&lt;P&gt;Sorry for the delay, had another CP major ospf issue...NOT my favorite subject lol&lt;/P&gt;
&lt;P&gt;Anyway, I ran the commands you gave, but so far, I cant logically see a way of combining them, but will keep trying.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 16:17:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194419#M8082</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-06T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194421#M8083</link>
      <description>&lt;P&gt;thanks so much !!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 16:24:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194421#M8083</guid>
      <dc:creator>Gongya_Yu</dc:creator>
      <dc:date>2023-10-06T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Anyway I can show all the rules for a section?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194425#M8084</link>
      <description>&lt;P&gt;Note that using a limit of greater than 500 with show access-rulebase will produce inconsistent results (namely, all the requested results may not be returned).&lt;BR /&gt;For this many rules, you will need to use multiple API calls with limit/offset to page through the results.&lt;BR /&gt;Bottom line: this operation cannot be done in a single operation and will probably have to be turned into a script.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 16:34:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Anyway-I-can-show-all-the-rules-for-a-section/m-p/194425#M8084</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-10-06T16:34:29Z</dc:date>
    </item>
  </channel>
</rss>

