<?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: Adding Service Group in a access-rule in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121806#M5940</link>
    <description>&lt;P&gt;If you search for pcANYWHERE, you will probably find more then one object, maybe a host and a network object by the same name?&lt;/P&gt;
&lt;P&gt;If you have objects by the same name, you should first try to rename one of the objects. (It's likely to cause you even more pain down the road otherwise.)&lt;/P&gt;
&lt;P&gt;The other option would be to specify the object by uid instead of name.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 09:00:58 GMT</pubDate>
    <dc:creator>Sigbjorn</dc:creator>
    <dc:date>2021-06-22T09:00:58Z</dc:date>
    <item>
      <title>Adding Service Group in a access-rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121785#M5937</link>
      <description>&lt;P&gt;&lt;SPAN&gt;i am facing issue adding a service group to an access rule while creating a new rule.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i have a rule where i need to add services and service groups.&lt;/P&gt;&lt;P&gt;i get error the the entry is not unique.&lt;/P&gt;&lt;P&gt;below is the syntax i am using.&lt;/P&gt;&lt;P&gt;add access-rule layer "standard" name "test" position 10 source "node a" destination "nodeb" destination.1 "nodec" service "ssh" service.1 "shiva_vpn_group" action "accept"&lt;/P&gt;&lt;P&gt;i am&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;not able to find anything in API Doc or the community.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 04:51:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121785#M5937</guid>
      <dc:creator>sudhir_mirajkar</dc:creator>
      <dc:date>2021-06-22T04:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Service Group in a access-rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121803#M5938</link>
      <description>&lt;P&gt;Can you show the exact error message you're getting?&lt;/P&gt;
&lt;P&gt;Two things that stick out to me, layer would usually be "Network" or "Application" if the policy package is Standard (Default behavior) - You can verify the layer by opening Manage policies and layers and looking at the Layers -&amp;gt; Access Control section&lt;/P&gt;
&lt;P&gt;And when adding several objects, I would use service.1 and service.2 instead of service and service.1 (Same for dst)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:41:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121803#M5938</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2021-06-22T08:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Service Group in a access-rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121805#M5939</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is the error i get&lt;BR /&gt;code: "generic_err_object_field_not_unique"&lt;BR /&gt;message: "Requested object name [pcANYWHERE] is not unique."&lt;/P&gt;&lt;P&gt;the layer name in the question is a typo its a Network layer&lt;BR /&gt;&lt;BR /&gt;i tried your suggestion of using service.1 and service.2 but it give me the same error.&lt;/P&gt;&lt;P&gt;i can either add only service or service-group in a API call but not both in one call.&lt;/P&gt;&lt;P&gt;thanks...&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:51:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121805#M5939</guid>
      <dc:creator>sudhir_mirajkar</dc:creator>
      <dc:date>2021-06-22T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Service Group in a access-rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121806#M5940</link>
      <description>&lt;P&gt;If you search for pcANYWHERE, you will probably find more then one object, maybe a host and a network object by the same name?&lt;/P&gt;
&lt;P&gt;If you have objects by the same name, you should first try to rename one of the objects. (It's likely to cause you even more pain down the road otherwise.)&lt;/P&gt;
&lt;P&gt;The other option would be to specify the object by uid instead of name.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 09:00:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121806#M5940</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2021-06-22T09:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Service Group in a access-rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121807#M5941</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;i was not aware that even if we call service to be added it will look at other objects as well for the name.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i do see the same name is used for an app category.&lt;/P&gt;&lt;P&gt;so looks like i will have to go with UID for this.&lt;/P&gt;&lt;P&gt;thanks for your help here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 09:09:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-Service-Group-in-a-access-rule/m-p/121807#M5941</guid>
      <dc:creator>sudhir_mirajkar</dc:creator>
      <dc:date>2021-06-22T09:09:34Z</dc:date>
    </item>
  </channel>
</rss>

