<?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: Access section name is not unique in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/206338#M8348</link>
    <description>&lt;P&gt;I guess thats expected, not sure. I get exact same thing.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;PRE&gt;{
  "code" : "generic_err_missing_session_id",
  "message" : "No query parameters are found"
}&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Feb 2024 19:51:54 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2024-02-16T19:51:54Z</dc:date>
    <item>
      <title>Access section name is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/205308#M8333</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a large policy with many access sections and my goal is to add/edit a rule in a certain section.&amp;nbsp;Before adding a rule, I have to make sure if there is access section with a specific name or not.&amp;nbsp; There is a problem when there are several sections with the same name in the policy. In this case, when searching for a access&amp;nbsp; section, I get the error "Requested object name [name] is not unique." instead of finding out its uid.&lt;/P&gt;&lt;P&gt;For example, I have sections with rules:&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;AAAA&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;BBBB&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;CCCC&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;AAAA&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;DDDD&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Request:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;https://x.x.x.x/web_api/show-access-section

{
    "name": "AAAA",
    "layer": "Policy Network"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Responce:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "code": "generic_err_object_field_not_unique",
    "message": "Requested object name [AAAA] is not unique."
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;In this case, I cannot find out the uid of the access&amp;nbsp; section and also cannot add a rule to the "AAAA"&amp;nbsp;access&amp;nbsp; section by its name since it is not unique.&amp;nbsp;Is there a way to add a rule to the first&amp;nbsp;access&amp;nbsp; section named "AAAA"?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Feb 2024 13:35:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/205308#M8333</guid>
      <dc:creator>Dmitriy2</dc:creator>
      <dc:date>2024-02-07T13:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access section name is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/206334#M8347</link>
      <description>&lt;P&gt;Even though the access sections have the same name, they will have unique UIDs, which should be used in this case.&lt;BR /&gt;You may need to parse the rulebase with show access-layer to find the correct one.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:19:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/206334#M8347</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-02-16T19:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Access section name is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/206338#M8348</link>
      <description>&lt;P&gt;I guess thats expected, not sure. I get exact same thing.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;PRE&gt;{
  "code" : "generic_err_missing_session_id",
  "message" : "No query parameters are found"
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:51:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Access-section-name-is-not-unique/m-p/206338#M8348</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-02-16T19:51:54Z</dc:date>
    </item>
  </channel>
</rss>

