<?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: Api Call - message : Requested object name [tcp_3389] is not unique in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197264#M8173</link>
    <description>&lt;P&gt;But why are you trying to create something that already exists...?&lt;/P&gt;
&lt;P&gt;Either reuse the existing object to avoid the duplication or choose a different name for the new one that you're attempting to create.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 06:58:39 GMT</pubDate>
    <dc:creator>Chris_Atkinson</dc:creator>
    <dc:date>2023-11-07T06:58:39Z</dc:date>
    <item>
      <title>Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197243#M8169</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I got a error while creating access rule with api call.&lt;/P&gt;&lt;P&gt;This error shown as below:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;code : generic_err_object_field_not_unique,&lt;BR /&gt;message : Requested object name [tcp_3389] is not unique.&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly i added host and service objects and i got status code 200,&lt;/P&gt;&lt;P&gt;{url: https://x.x.x.x:443/web_api/add-service-tcp, payload: {name: tcp_3389, port: 3389, ignore-warnings: true}, status_code: 200}&lt;/P&gt;&lt;P&gt;{url: https://x.x.x.x:443/web_api/add-host, payload: {name: 2.1.2.1, ip-address: 2.1.2.1, ignore-warnings: true}, status_code: 200}&lt;/P&gt;&lt;P&gt;{url: https://x.x.x.x:443/web_api/add-host, payload: {name: 1.2.1.2, ip-address: 1.2.1.2, ignore-warnings: true}, status_code: 200}&lt;/P&gt;&lt;P&gt;Then i tried to add access rule with payload below, i got error&lt;/P&gt;&lt;P&gt;{url: https://x.x.x.x:443/web_api/add-access-rule, payload: {position: top, layer: Network, source: [1.2.1.2], destination: [2.1.2.1], service: [tcp_3389], time: Any, action: Accept, comments: test-1, ignore-warnings: true, track: {type: Log}}, status_code: 400}&lt;/P&gt;&lt;P&gt;Does anyone have an idea about that?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 21:33:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197243#M8169</guid>
      <dc:creator>anilcecikoglu</dc:creator>
      <dc:date>2023-11-06T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197253#M8170</link>
      <description>&lt;P&gt;Sounds like you have multiple objects with the same name.&lt;BR /&gt;That is not an error you can "ignore."&lt;BR /&gt;Search for the object(s) in SmartConsole and rename them.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:18:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197253#M8170</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-11-06T23:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197263#M8172</link>
      <description>&lt;P&gt;Thank you for your response,&lt;/P&gt;&lt;P&gt;Do you know, how to ignore while creating this object in api call?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:20:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197263#M8172</guid>
      <dc:creator>anilcecikoglu</dc:creator>
      <dc:date>2023-11-07T06:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197264#M8173</link>
      <description>&lt;P&gt;But why are you trying to create something that already exists...?&lt;/P&gt;
&lt;P&gt;Either reuse the existing object to avoid the duplication or choose a different name for the new one that you're attempting to create.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:58:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197264#M8173</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2023-11-07T06:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197284#M8175</link>
      <description>&lt;P&gt;Hi Chris,&amp;nbsp;&lt;SPAN&gt;Thank you for your response,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but i did not get any error while creating tcp_3389 also i get 200 from create process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you are right but, i want to ignore this error, do you have any idea about this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 10:16:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197284#M8175</guid>
      <dc:creator>anilcecikoglu</dc:creator>
      <dc:date>2023-11-07T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197337#M8177</link>
      <description>&lt;P&gt;You used ignore-warnings true when creating the object.&lt;BR /&gt;If you had not done that, you would have gotten a warning about creating an object with the same name and/or details (IP, port, etc) as an existing object.&lt;BR /&gt;The 200 message is expected in this case.&lt;/P&gt;
&lt;P&gt;The reason you are getting an error now is because you are attempting to refer to an object by name when that name is not unique.&lt;BR /&gt;This is not an error you can ignore.&lt;BR /&gt;To refer to the specific object you created, reference the object by uid (which is always unqiue) instead of the name.&lt;/P&gt;
&lt;P&gt;However, creating multiple objects with the same name/details is very much not recommended.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 15:53:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197337#M8177</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-11-07T15:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Api Call - message : Requested object name [tcp_3389] is not unique</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197349#M8178</link>
      <description>&lt;P&gt;Thank you for your answer, I'll try&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 19:59:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Api-Call-message-Requested-object-name-tcp-3389-is-not-unique/m-p/197349#M8178</guid>
      <dc:creator>anilcecikoglu</dc:creator>
      <dc:date>2023-11-07T19:59:13Z</dc:date>
    </item>
  </channel>
</rss>

