<?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: add-access-rule install-on target issue in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99233#M5246</link>
    <description>&lt;P&gt;Hm, you're right, I misread the documentation.&lt;BR /&gt;It seems you can only specify the name or the UID of an object as part of the call, which is problematic in this case.&lt;BR /&gt;In general, UID is always more specific than name.&lt;BR /&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>Thu, 15 Oct 2020 15:33:49 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-10-15T15:33:49Z</dc:date>
    <item>
      <title>add-access-rule install-on target issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99063#M5226</link>
      <description>&lt;P&gt;I am using the add-access-rule call to add a rule using the following JSON construct&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;{&lt;BR /&gt;"vpn": "Any",&lt;BR /&gt;"layer": "Test_Domain Security",&lt;BR /&gt;"comments": "First rule addition test",&lt;BR /&gt;"service": [&lt;BR /&gt;"ssh"&lt;BR /&gt;],&lt;BR /&gt;"action": "Accept",&lt;BR /&gt;"name": "MIKE_TEST_RULE",&lt;BR /&gt;"destination": [&lt;BR /&gt;"DEST_PROD_NETWORKS"&lt;BR /&gt;],&lt;BR /&gt;"source": [&lt;BR /&gt;"SOURCE_PROD_NETWORKS"&lt;BR /&gt;],&lt;BR /&gt;"install-on": [&lt;BR /&gt;"G_DOMAIN_Firewalls_global"&lt;BR /&gt;],&lt;BR /&gt;"track": {&lt;BR /&gt;"type": "Log"&lt;BR /&gt;},&lt;BR /&gt;"position": {&lt;BR /&gt;"below": "a13b68a5-83aa-4cf1-bcc4-490c82e40f07"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The rule adds successfully, however the domain uses a global policy where, in the install-on&lt;BR /&gt;field of the global rules the object defining the install on group is a global dynamic&lt;BR /&gt;network object that gets resolved to a local "simple" group defined at the domain level.&lt;/P&gt;&lt;P&gt;This means that effectively there are two objects of the same named defined in the Domain&lt;/P&gt;&lt;P&gt;G_DOMAIN_Firewalls_global - global dynamic network object&lt;BR /&gt;G_DOMAIN_Firewalls_global - locally defined simple group&lt;/P&gt;&lt;P&gt;When the API call adds the rule using the object that is used in the install-on field is&lt;BR /&gt;the one from the global domain and not the locally defined group (snippet of return JSON below)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"install-on" : [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"type" : "DynamicGlobalNetworkObject",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"name" : "G_DOMAIN_Firewalls_global",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"domain" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"domain-type" : "global domain",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"name" : "Global"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;"uid" : "0b657037-ebd1-8d48-b455-76111da0ea7d"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco" size="2"&gt;],&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If the install-on is defined using it's UID then all works correctly. However it would be&lt;BR /&gt;better to define the value by name and have the API select the correct object (the global&lt;BR /&gt;dynamic group is not a valid selection at the local level as far as I know).&lt;/P&gt;&lt;P&gt;Is it possible to instruct the API which object/domain combination to use? If so how is&lt;BR /&gt;value constructed?&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 07:59:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99063#M5226</guid>
      <dc:creator>mikesleath</dc:creator>
      <dc:date>2020-10-14T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: add-access-rule install-on target issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99103#M5234</link>
      <description>&lt;P&gt;It looks like you can specify the domain in the API call.&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-access-rule~v1.6.1" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-access-rule~v1.6.1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 13:57:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99103#M5234</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-10-14T13:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: add-access-rule install-on target issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99113#M5235</link>
      <description>&lt;P&gt;Sorry, I'm just not seeing where I specify that. I can see the domain "owning" the object is part of the return JSON, but I just can't see how to specify the domain owning the object in the request portion.&lt;/P&gt;&lt;P&gt;Or are you saying it can be specified as part of the install-on list? If so do you have an example of how that is structured.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 14:27:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99113#M5235</guid>
      <dc:creator>mikesleath</dc:creator>
      <dc:date>2020-10-14T14:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: add-access-rule install-on target issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99226#M5244</link>
      <description>&lt;P&gt;Just by way of an update... I raised this issue through our dedicated Diamond Support engineer and the development team for the API have confirmed that the above behaviour is a problem that needs to be addressed i.e. the add-access-rule API call should not select the "global" version of the object when adding a rule to a domain policy. The workaround is to reference the install-on object by its UID.&lt;/P&gt;&lt;P&gt;If there is a way to specify which domain an object should belong to when making other calls could you provide an example?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 14:59:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99226#M5244</guid>
      <dc:creator>mikesleath</dc:creator>
      <dc:date>2020-10-15T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: add-access-rule install-on target issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99233#M5246</link>
      <description>&lt;P&gt;Hm, you're right, I misread the documentation.&lt;BR /&gt;It seems you can only specify the name or the UID of an object as part of the call, which is problematic in this case.&lt;BR /&gt;In general, UID is always more specific than name.&lt;BR /&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>Thu, 15 Oct 2020 15:33:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/add-access-rule-install-on-target-issue/m-p/99233#M5246</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-10-15T15:33:49Z</dc:date>
    </item>
  </channel>
</rss>

