<?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 a data center object (Cisco NDO/APIC EPG) to a Checkpoint's network group object in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191388#M7970</link>
    <description>&lt;P&gt;The publish action is not synchronous and returns a task-id.&lt;BR /&gt;You will need to monitor this task-id to confirm when the publish action completes.&lt;BR /&gt;Only then will the changes be effective.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 18:50:59 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-09-05T18:50:59Z</dc:date>
    <item>
      <title>Adding a data center object (Cisco NDO/APIC EPG) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191298#M7965</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your prompt help and feedbacks, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've developed a software application that touches both Cisco NDO/APIC and Checkpoint.&amp;nbsp; So far, I've found integration between Cisco NDO/APIC and Checkpoint really challenging, frustrating to be honest.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Particularly, regarding the associating a NDO/APIC's data center object to Checkpoint's network group.&amp;nbsp; This is all REST API calls.&amp;nbsp; After creating the DC object (an EPG) in NDO/APIC, I would need to associate the EPG to an existing Checkpoint's network group.&amp;nbsp; So, I used add-data-center-object and publish WAPI calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The association works at times, but failed other times.&amp;nbsp; In particular, I do see the EPG DC object created on Checkpoint, but it's not associated to the existing network group at times.&amp;nbsp; I don't even see the logs on Checkpoint that the DC object was created, network group is modified and the publish step, like the picture below which shows a successful DC object create and successful association.&amp;nbsp; I even introduced few-second delay between DC object create (on the Checkpoint) and the publish, but not helping to address issue 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why this happens?&amp;nbsp; If you run into the same issue, please share how to address it.&amp;nbsp; Appreciate your feedbacks and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a WAPI API call that allows me to update (ie, add) an existing network group with a DC object?&amp;nbsp; I can't see such API exists from the&amp;nbsp;Management API Reference documentation.&amp;nbsp; If it exists, I like to implement a check logic into my code, like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;add-data-center-object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;publish&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While (DC_object isn't added into the Checkpoint's network group yet):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;wait(1sec)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;try to update (add the DC_object) the network group again.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;publish&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Check again, if DC_object is added to the Checkpoint's network group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After while loop is exited, the DC object should now be in the network group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this solution help address my association issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 12:43:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191298#M7965</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-02T12:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/API EGP) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191313#M7966</link>
      <description>&lt;P&gt;Why not contact the local CP SE and/or TAC for help?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 07:47:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191313#M7966</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2023-09-01T07:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/API EGP) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191337#M7967</link>
      <description>&lt;P&gt;I was thinking about that, but thought this channel would also be of help.&amp;nbsp; I am sure there are people who have NDO/APIC &amp;amp; Checkpoint integration experience here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything feedback is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:35:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191337#M7967</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-01T12:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/API EGP) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191338#M7968</link>
      <description>&lt;P&gt;Example at the bottom maybe?&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-data-center-object~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-data-center-object~v1.9%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:41:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191338#M7968</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-09-01T12:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/API EGP) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191348#M7969</link>
      <description>&lt;P&gt;As mentioned in my problem statement, I already used&amp;nbsp;add-data-center-object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I used&amp;nbsp;add-data-center-object API call to create an DC object.&amp;nbsp; In the body, I have the network group name in the request body like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;url = f"{cp_url}/add-data-center-object"&lt;/P&gt;&lt;P&gt;body = {"data-center-uid": “abc”,&lt;BR /&gt;"uid-in-data-center": “xyz”,&lt;BR /&gt;"groups”: [“CP_network_group”]}&lt;/P&gt;&lt;P&gt;response = self.session.post(url, json=body, verify=self.verify)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 14:33:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191348#M7969</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-01T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/APIC EPG) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191388#M7970</link>
      <description>&lt;P&gt;The publish action is not synchronous and returns a task-id.&lt;BR /&gt;You will need to monitor this task-id to confirm when the publish action completes.&lt;BR /&gt;Only then will the changes be effective.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:50:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191388#M7970</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-09-05T18:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/API EGP) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191401#M7971</link>
      <description>&lt;P&gt;Is show-task the right WAPI call to check for the publish task status?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#web/show-task~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#web/show-task~v1.8%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I can do a loop that checks for its status, before continuing on.&amp;nbsp; If not done, I can delay 1, and check again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 00:59:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191401#M7971</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-02T00:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a data center object (Cisco NDO/API EGP) to a Checkpoint's network group object</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191406#M7972</link>
      <description>&lt;P&gt;Mr. PhoneBoy, your hint was very helpful!&amp;nbsp; &amp;nbsp;I went back, added more code, checks, and now it is working 100%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 04:31:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-a-data-center-object-Cisco-NDO-APIC-EPG-to-a-Checkpoint-s/m-p/191406#M7972</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-02T04:31:02Z</dc:date>
    </item>
  </channel>
</rss>

