<?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: &amp;quot;[Network] is not unique&amp;quot; error while trying to get rule from domain with global policy(provider1) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11179#M850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two policy layers named "Network" - one in a local domain and other in a global domain.&lt;/P&gt;&lt;P&gt;When you assign a glopal policy to a domain, the policy package now contains two layers with a same name - hence the ambiguity.&lt;/P&gt;&lt;P&gt;To overcome this name ambiguity, you have to use the &lt;STRONG&gt;UID of the layer&lt;/STRONG&gt; in API commands.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2017 09:15:44 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2017-11-13T09:15:44Z</dc:date>
    <item>
      <title>"[Network] is not unique" error while trying to get rule from domain with global policy(provider1)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11178#M849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I have a multi-domain server (Provider 1) with a domain (global policy assigned).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I tried to get rule using R80 API, it shows error "Requested object name [Network] is not unique&lt;/SPAN&gt;&lt;SPAN style="background-color: #fcf8e3; color: #8a6d3b; font-size: 12px;"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;To login I used following syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="color: #008000;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="color: #008000;"&gt;"user" : "username",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"password" : "password",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="color: #008000;"&gt;"domain" : "domain name"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;To get rule i used "show-access-rule" and syntax used is:&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="color: #008000;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt; "name" : "Clean up",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt; "layer" : "Network"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;This works fine with the domain without global policy assigned. What is the correct way to fetch this from a domain with global policy? The rule which I am trying to fetch is not a global rule.&lt;/P&gt;&lt;P style="border: 0px;"&gt;When I tried fetching the list of layers I got two "Network" layer:&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="color: #008000;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"access-layers": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"uid": "4847c238-7891-446b-ba68-a540e67155be",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"name": "Network",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"type": "access-layer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"domain": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"uid": "e0d03ca1-01cc-43b4-a09f-0ef5eb1d9dc7",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"name": "domain name",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"domain-type": "domain"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"uid": "87ed1061-d5f9-4318-90d9-1be3badc4c76",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"name": "Network",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"type": "access-layer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"domain": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"uid": "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"name": "Global",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"domain-type": "global domain"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"uid": "7c45f8a9-07c6-4ac8-9f48-c791b8ab3dad",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"name": "Policy1 Network",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"type": "access-layer",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"domain": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"uid": "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"name": "Global",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"domain-type": "global domain"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"from": 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"to": 3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;"total": 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 07:16:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11178#M849</guid>
      <dc:creator>Ekta_Siwani1</dc:creator>
      <dc:date>2017-11-13T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: "[Network] is not unique" error while trying to get rule from domain with global policy(provider1)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11179#M850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two policy layers named "Network" - one in a local domain and other in a global domain.&lt;/P&gt;&lt;P&gt;When you assign a glopal policy to a domain, the policy package now contains two layers with a same name - hence the ambiguity.&lt;/P&gt;&lt;P&gt;To overcome this name ambiguity, you have to use the &lt;STRONG&gt;UID of the layer&lt;/STRONG&gt; in API commands.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 09:15:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11179#M850</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-11-13T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: "[Network] is not unique" error while trying to get rule from domain with global policy(provider1)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11180#M851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the only way (using UID) to tell API which layer we want to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 11:09:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11180#M851</guid>
      <dc:creator>Ekta_Siwani1</dc:creator>
      <dc:date>2017-11-13T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: "[Network] is not unique" error while trying to get rule from domain with global policy(provider1)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11181#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the global policy assignment - yes.&lt;/P&gt;&lt;P&gt;You can extract the UID from the access-layers query, mentioned in your post above.&lt;/P&gt;&lt;P&gt;The domain name field in the above response is your&amp;nbsp;reference to the correct layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:15:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-Network-is-not-unique-quot-error-while-trying-to-get-rule/m-p/11181#M852</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-11-13T12:15:14Z</dc:date>
    </item>
  </channel>
</rss>

