<?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: How to find access rules via API without name in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146367#M6736</link>
    <description>&lt;P&gt;show access-layers is probably what you want.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-access-layers~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-access-layers~v1.8%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It might also be policy packages (I.e. show packages), keeping in mind a policy package is made up of multiple layers.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-packages~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-packages~v1.8%20&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Apr 2022 00:50:48 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2022-04-17T00:50:48Z</dc:date>
    <item>
      <title>How to find access rules via API without name</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146336#M6733</link>
      <description>&lt;P&gt;I am creating an automation that gathers all FW rules, network objects, host objects, service objects, and groups. I have found most of the information I need via the web API using show-objects, however I am at a loss on how to find the rules themselves. Via the API I am getting a list of all domains &amp;amp; servers/firewalls from the show-mdss endpoint, logging into the returned domains, gathering access-layers, and gathering all objects. However, I am at a loss on how to pull down the access-sections or access-rules without knowing what name they are using. I have found many examples of how to show the access rules using the name, I am not finding anything for how to get a list of names of all of the access rules. Any help is much appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 01:40:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146336#M6733</guid>
      <dc:creator>Dayde</dc:creator>
      <dc:date>2022-04-15T01:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find access rules via API without name</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146358#M6734</link>
      <description>&lt;P&gt;&lt;EM&gt;show access rulebase&lt;/EM&gt; will do it. In the API docs, just search for&amp;nbsp;&lt;EM&gt;rulebase&lt;/EM&gt;. Good luck!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-access-rulebase~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-access-rulebase~v1.8%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 20:39:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146358#M6734</guid>
      <dc:creator>Art_Zalenekas</dc:creator>
      <dc:date>2022-04-15T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to find access rules via API without name</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146359#M6735</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;In the API docs it looks like a name or uid is required. I am looking for the endpoint that will give me a list of the rulebase names. While I have a lot of experience with older checkpoints and other modern FW's, I am not super familiar with how the current checkpoints function, so I may just be missing something obvious.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 21:00:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146359#M6735</guid>
      <dc:creator>Dayde</dc:creator>
      <dc:date>2022-04-15T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find access rules via API without name</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146367#M6736</link>
      <description>&lt;P&gt;show access-layers is probably what you want.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-access-layers~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-access-layers~v1.8%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It might also be policy packages (I.e. show packages), keeping in mind a policy package is made up of multiple layers.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-packages~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-packages~v1.8%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 00:50:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146367#M6736</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-04-17T00:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to find access rules via API without name</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146369#M6737</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/44647"&gt;@Art_Zalenekas&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;. show access-layers &amp;amp; show access-rulebase is what I needed. What really threw me off was that the names and uids returned under the access-layers key is what I need to use in the postdata for show access-rulebase or show access-sections. It would be nice if the API docs mentioned this under all 3 of those endpoints &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks again for the help&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 06:55:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-access-rules-via-API-without-name/m-p/146369#M6737</guid>
      <dc:creator>Dayde</dc:creator>
      <dc:date>2022-04-17T06:55:30Z</dc:date>
    </item>
  </channel>
</rss>

