<?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: Using the API to map an Access Layer to a Policy Package in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71404#M4259</link>
    <description>OK. I'll give that a try. Thanks!</description>
    <pubDate>Tue, 31 Dec 2019 13:33:37 GMT</pubDate>
    <dc:creator>Brian_Deutmeyer</dc:creator>
    <dc:date>2019-12-31T13:33:37Z</dc:date>
    <item>
      <title>Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69577#M4158</link>
      <description>&lt;P&gt;Hi friends-&lt;/P&gt;&lt;P&gt;I'm looking to use the API&amp;nbsp; to add a rule to a layer and then install policy on the appropriate package (or packages for a shared layer).&amp;nbsp; In SmartConsole, when I view layers (Manage policies and layers...), it shows me the package(s) the layer is used on, but I can't seem to find that mapping in the API.&amp;nbsp; I've tried both show access-layer and show access-layers, but neither give me the packages.&amp;nbsp; I tried doing a where-used on my layer UID, but that just gives me an error.&amp;nbsp; I've noticed that showing all my packages lists the layers that are used, but what about the other way around?&amp;nbsp; How do find which policy(ies) my access layer is a part of?&lt;/P&gt;&lt;P&gt;I'm on v1.5.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 01:46:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69577#M4158</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-12-07T01:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69609#M4160</link>
      <description>&lt;P&gt;Pretty sure this is not part of the API. Sounds like a good RFE.&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/4867"&gt;@Nir_Amara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 06:26:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69609#M4160</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-08T06:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69636#M4176</link>
      <description>&lt;P&gt;Hey Brian,&lt;/P&gt;
&lt;P&gt;Thank you for your question.&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;mentioned, there's currently no API that corresponds with the SmartConsole view you mentioned.&lt;/P&gt;
&lt;P&gt;Indeed, the current way to achieve that would be iterating on the policy packages access layers' and check on which packages the changed layer is in use.&lt;/P&gt;
&lt;P&gt;If you need help with implementing such logic, feel free to consult with us here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless, we'll look into the possibility of adding such field to the "access-layer" reply in future versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Nir&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 14:20:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69636#M4176</guid>
      <dc:creator>Nir_Amara</dc:creator>
      <dc:date>2019-12-08T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69671#M4180</link>
      <description>&lt;P&gt;Thanks, Nir.&lt;/P&gt;&lt;P&gt;Adding a "packages : []" output or something like that to the access-layer would be awesome.&amp;nbsp; It would make it really easy to walk up the chain from adding a rule to installation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll put my friend JQ to work and start dumping my packages until said enhancement arrives.&amp;nbsp; Let me know if you want an official RFE.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 04:11:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/69671#M4180</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-12-09T04:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71373#M4255</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/4867"&gt;@Nir_Amara&lt;/a&gt;&amp;nbsp; - I'm noticing that the show-package API does not show inline access layers in the output.&amp;nbsp; I've even tried with full details.&amp;nbsp; Would you agree? How do I map an inline layer to a package?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 21:45:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71373#M4255</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-12-30T21:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71376#M4256</link>
      <description>If it's not a shared inline layer, you can assume it's part of the same policy package.&lt;BR /&gt;If the inline layer is shared, it could easily be part of multiple policy packages.</description>
      <pubDate>Tue, 31 Dec 2019 00:06:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71376#M4256</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-31T00:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71377#M4257</link>
      <description>&lt;P&gt;I'm going back to my original question.&amp;nbsp; I know my layer name (which may be an inline layer), but how do I find the package my layer is used on for installation?&amp;nbsp; If it's not an inline layer, show-package does the trick, but inline...not so much.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 01:32:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71377#M4257</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-12-31T01:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71401#M4258</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;
&lt;P&gt;As Nir mentioned, we'll l&lt;SPAN&gt;ook into the possibility of adding such field to the "access-layer" reply in future versions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the mean time you can&lt;/SPAN&gt;&amp;nbsp;find the packages which are using a specific inline layer by using the following steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use “show access-layers” to get all the access-layers.&lt;/LI&gt;
&lt;LI&gt;For each layer use “show access-rulebase” with “use-object-dictionary” set to false. &lt;BR /&gt;If the inline layer is part of this access-layer you will find it in the output under “rulebase”-&amp;gt; “inline-layer”.&lt;/LI&gt;
&lt;LI&gt;To find the package use Nir’s explanation with the layer you found in step 2.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Notice: the layers you will find in step 2 can be also inline-layers.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 12:36:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71401#M4258</guid>
      <dc:creator>Yael_G</dc:creator>
      <dc:date>2019-12-31T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to map an Access Layer to a Policy Package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71404#M4259</link>
      <description>OK. I'll give that a try. Thanks!</description>
      <pubDate>Tue, 31 Dec 2019 13:33:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-the-API-to-map-an-Access-Layer-to-a-Policy-Package/m-p/71404#M4259</guid>
      <dc:creator>Brian_Deutmeyer</dc:creator>
      <dc:date>2019-12-31T13:33:37Z</dc:date>
    </item>
  </channel>
</rss>

