<?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 do I add a new access-section to a specific package via the api? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172778#M7520</link>
    <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;explained the context of this previously here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/set-a-policy-package-api/m-p/8995" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/set-a-policy-package-api/m-p/8995&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 08:48:25 GMT</pubDate>
    <dc:creator>Chris_Atkinson</dc:creator>
    <dc:date>2023-02-27T08:48:25Z</dc:date>
    <item>
      <title>How do I add a new access-section to a specific package via the api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172756#M7518</link>
      <description>&lt;P&gt;I use the following to add script to the first policy on my SMS, using SmartConsole API.&lt;/P&gt;&lt;P&gt;add access-section layer "Network" position top name "Gateways Access"&lt;BR /&gt;add access-section layer "Network" position bottom name "Noise Suppression"&lt;BR /&gt;add access-section layer "Network" position bottom name "Stealth Rule"&lt;BR /&gt;add access-section layer "Network" position bottom name "Internet Access"&lt;BR /&gt;add access-section layer "Network" position bottom name "Cleanup Rule"&lt;/P&gt;&lt;P&gt;Later, I created a second policy for another gateway, I want to add these access-sections to the new policy.&lt;/P&gt;&lt;P&gt;I find that this still adds the sections to the first policy, no matter which policy I have selected in SmartConsole.&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#gui-cli/add-access-section~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#gui-cli/add-access-section~v1.9%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The API does not support specifying a package.&lt;/P&gt;&lt;P&gt;How do I script adding access-sections to a specific policy package using SmartConsole API?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 23:17:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172756#M7518</guid>
      <dc:creator>SecNetEng</dc:creator>
      <dc:date>2023-02-26T23:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new access-section to a specific package via the api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172777#M7519</link>
      <description>&lt;P&gt;It seems that hardly any command has an option to select the package. So far I only found it at&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;show access-rulebase&lt;/H4&gt;</description>
      <pubDate>Mon, 27 Feb 2023 08:32:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172777#M7519</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2023-02-27T08:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new access-section to a specific package via the api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172778#M7520</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;explained the context of this previously here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/set-a-policy-package-api/m-p/8995" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/set-a-policy-package-api/m-p/8995&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 08:48:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172778#M7520</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2023-02-27T08:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new access-section to a specific package via the api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172791#M7522</link>
      <description>&lt;P&gt;You need to replace the name of the layer, in the case of your example "Network" with the relevant one.&lt;/P&gt;
&lt;P&gt;You can retrieve the name in CLI or in SmartConsole &amp;gt; Menu &amp;gt; Manage policies and layers &amp;gt; Layers &amp;gt; Access Control&lt;/P&gt;
&lt;P&gt;For example from Cloud Demo:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-27 11_43_18-Manage policies and layers.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/19800iBD0B992C359174D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-27 11_43_18-Manage policies and layers.png" alt="2023-02-27 11_43_18-Manage policies and layers.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 09:44:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172791#M7522</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-02-27T09:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new access-section to a specific package via the api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172881#M7523</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/585"&gt;@Tal_Paz-Fridman&lt;/a&gt;&amp;nbsp;thank you for the detailed instructions and screenshot.&lt;/P&gt;&lt;P&gt;The first (default) layer was "Network" in policy "Policy_one".&lt;/P&gt;&lt;P&gt;The new layer in "Policy_two" was actually named "Policy_two Network".&lt;/P&gt;&lt;P&gt;To find this I followed your instructions&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can retrieve the name in CLI or in SmartConsole &amp;gt; Menu &amp;gt; Manage policies and layers &amp;gt; Layers &amp;gt; Access Control&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Under Layer details I found the correct name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To sum up:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Not working:&amp;nbsp;&lt;SPAN&gt;add access-section layer "Network" position top name "Gateways Access"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Not working:&amp;nbsp;add access-section layer "Policy_two" position top name "Gateways Access"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Working:&amp;nbsp;&lt;SPAN&gt;add access-section layer "Policy_two Network" position top name "Gateways Access"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 27 Feb 2023 19:38:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-do-I-add-a-new-access-section-to-a-specific-package-via-the/m-p/172881#M7523</guid>
      <dc:creator>SecNetEng</dc:creator>
      <dc:date>2023-02-27T19:38:20Z</dc:date>
    </item>
  </channel>
</rss>

