<?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 Fails for Access Layers? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210925#M8467</link>
    <description>&lt;P&gt;Thank you for confirming&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 10:58:05 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2024-04-10T10:58:05Z</dc:date>
    <item>
      <title>Where-Used Fails for Access Layers?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210867#M8462</link>
      <description>&lt;P&gt;Some of my management servers have accumulated a lot of old access layers which I suspect aren't used. I want to clean them up, but just noticed something weird:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# layerUuid=$(mgmt_cli -f json -r true show access-layers | jq -c '."access-layers"[0]|.uid')
[Expert@DallasSA]# mgmt_cli -f json -r true show object uid "$layerUuid"
{
  "object" : {
    "uid" : "ccf410ea-85fc-4194-8b8d-7417d3999ac8",
    "name" : "InstalledNowhere Network",
    "type" : "access-layer",
    "domain" : {
      "uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
      "name" : "SMC User",
      "domain-type" : "domain"
    },
    "icon" : "ApplicationFirewall/rulebase",
    "color" : "black"
  }
}
[Expert@DallasSA]# mgmt_cli -f json -r true where-used uid "$layerUuid"
{
  "code" : "generic_err_object_not_found",
  "message" : "Requested object [ccf410ea-85fc-4194-8b8d-7417d3999ac8] not found"
}&lt;/LI-CODE&gt;
&lt;P&gt;Where Used appears to not support finding where an access layer is used.&lt;/P&gt;
&lt;P&gt;When showing access layers, the container structure has an "access-layers" key instead of an "objects" key.&amp;nbsp;I guess access layers don't count as objects? Is this intended, or just something nobody has reported before?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:22:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210867#M8462</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-04-09T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where-Used Fails for Access Layers?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210878#M8463</link>
      <description>&lt;P&gt;I got same thing on 2 lab mgmt servers, both R81.20 jumbo 53&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Expert@cpazuremgmt:0]# layerUuid=$(mgmt_cli -f json -r true show access-layers | jq -c '."access-layers"[0]|.uid')&lt;BR /&gt;[Expert@cpazuremgmt:0]# mgmt_cli -f json -r true show object uid "$layerUuid"&lt;BR /&gt;{&lt;BR /&gt;"object" : {&lt;BR /&gt;"uid" : "30282496-99f7-423a-9e67-f803d267b178",&lt;BR /&gt;"name" : "azure-cluster-lab-policy Network",&lt;BR /&gt;"type" : "access-layer",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;BR /&gt;"name" : "SMC User",&lt;BR /&gt;"domain-type" : "domain"&lt;BR /&gt;},&lt;BR /&gt;"icon" : "ApplicationFirewall/rulebase",&lt;BR /&gt;"color" : "black"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;[Expert@cpazuremgmt:0]# mgmt_cli -f json -r true where-used uid "$layerUuid"&lt;BR /&gt;{&lt;BR /&gt;"code" : "generic_err_object_not_found",&lt;BR /&gt;"message" : "Requested object [30282496-99f7-423a-9e67-f803d267b178] not found"&lt;BR /&gt;}&lt;BR /&gt;[Expert@cpazuremgmt:0]#&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 22:56:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210878#M8463</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-04-09T22:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where-Used Fails for Access Layers?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210888#M8464</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 23:03:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210888#M8464</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-04-09T23:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where-Used Fails for Access Layers?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210894#M8465</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;where-used API does not support layers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 05:18:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210894#M8465</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2024-04-10T05:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where-Used Fails for Access Layers?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210925#M8467</link>
      <description>&lt;P&gt;Thank you for confirming&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 10:58:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210925#M8467</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-04-10T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where-Used Fails for Access Layers?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210931#M8468</link>
      <description>&lt;P&gt;In SmartConsole, when you try to delete a layer and it's used somewhere, it pops up the Where Used dialog, so I started there. Is there any equivalent to be sure an access layer isn't used before I try to delete it?&lt;/P&gt;
&lt;P&gt;The only things which can use an access layer are policy packages and access rules, right? I guess worst case I can dump all of the access layers, policy packages, and rules with an inline-layer key, then figure out which layers only show up in the first list.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 13:13:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-Used-Fails-for-Access-Layers/m-p/210931#M8468</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-04-10T13:13:42Z</dc:date>
    </item>
  </channel>
</rss>

