<?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 simple-cluster with groups over API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188425#M7908</link>
    <description>&lt;P&gt;Anything new?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 12:03:50 GMT</pubDate>
    <dc:creator>jimmy1</dc:creator>
    <dc:date>2023-08-02T12:03:50Z</dc:date>
    <item>
      <title>Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188088#M7897</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;I wanted to add a new simple cluster object over the mgmt-API including a list of groups with the "add-simple-cluster" command.&lt;/P&gt;&lt;P&gt;However if i add the "groups" parameter with a list of group names as value an error occurs:&lt;BR /&gt;"Validation failed with 1 blocking-error -&amp;gt; blocking-errors: -message: One of the objects that you selected could not be linked."&lt;/P&gt;&lt;P&gt;I think the "groups" parameter is not expecting a list of group names.&lt;/P&gt;&lt;P&gt;I don't understand it because with the "add-simple-gateway" command it works as expected.&lt;/P&gt;&lt;P&gt;So does anybody know what the groups parameter expects and can provide an example? Because in the Management API Reference it only says "Object" as an expected value for the "groups" parameter, but i don't know what is meant by that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cluster_groups_description.png" style="width: 657px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/21917i2D5A0A2AD323A355/image-dimensions/657x58?v=v2" width="657" height="58" role="button" title="cluster_groups_description.png" alt="cluster_groups_description.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is a sample json where i get this error:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"name" : &amp;lt;name&amp;gt;,&lt;BR /&gt;"ip-address" : &amp;lt;ip-address&amp;gt;,&lt;BR /&gt;"groups" : [list of group names]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 12:36:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188088#M7897</guid>
      <dc:creator>jimmy1</dc:creator>
      <dc:date>2023-07-31T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188099#M7898</link>
      <description>&lt;P&gt;Can you send an example of command you tried? I can give it a go in R81.20 lab&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:03:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188099#M7898</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-31T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188101#M7899</link>
      <description>&lt;P&gt;I use the Python sdk API library:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk/" target="_blank"&gt;GitHub - CheckPointSW/cp_mgmt_api_python_sdk: Check Point API Python Development Kit simplifies the use of the Check Point Management APIs.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is sample:&lt;/P&gt;&lt;P&gt;MGMT_SERVER_IP = &amp;lt;server-ip&amp;gt;&lt;BR /&gt;client_args = APIClientArgs(server=MGMT_SERVER_IP)&lt;BR /&gt;with APIClient(client_args) as client:&lt;BR /&gt;data = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "name" : "cluster-name",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "ip-address" : "1.1.1.1",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "groups" : [list of existing group names]&lt;BR /&gt;}&lt;BR /&gt;response = client.api_call("add-simple-cluster", data)&lt;BR /&gt;if response.success:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print("success")&lt;BR /&gt;else:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print(f"{response.error_message}")&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:22:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188101#M7899</guid>
      <dc:creator>jimmy1</dc:creator>
      <dc:date>2023-07-31T13:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188102#M7900</link>
      <description>&lt;P&gt;I was thinking below is what you tried, but let me test it.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-simple-cluster~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-simple-cluster~v1.9%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:25:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188102#M7900</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-31T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188185#M7904</link>
      <description>&lt;P&gt;Sorry, forgot to update, apologies. I got same issue as you in my R81.20 lab, but will check again tomorrow. Seems like there is minor syntax error somewhere, just my gut feeling, but I could be mistaken.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 01:04:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188185#M7904</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-01T01:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188193#M7905</link>
      <description>&lt;P&gt;I am using the WEB-API and therefore a python library exist which handles the https connection and so on.&lt;/P&gt;&lt;P&gt;But basically it is the same as normal, because i have to build the json and then call the library function to send it to the server.&lt;/P&gt;&lt;P&gt;Surely I have to login before calling the library function with the login command.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 05:32:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188193#M7905</guid>
      <dc:creator>jimmy1</dc:creator>
      <dc:date>2023-08-01T05:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188425#M7908</link>
      <description>&lt;P&gt;Anything new?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:03:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188425#M7908</guid>
      <dc:creator>jimmy1</dc:creator>
      <dc:date>2023-08-02T12:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188473#M7909</link>
      <description>&lt;P&gt;Im off today, was travelling, but will check soon and let you know.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:50:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188473#M7909</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-02T15:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188485#M7910</link>
      <description>&lt;P&gt;K, I just followed example at the bottom of this link and worked fine.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-simple-cluster~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-simple-cluster~v1.9%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 16:54:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188485#M7910</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-02T16:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188525#M7911</link>
      <description>&lt;P&gt;Did you use a list of groups or what did you use?&lt;/P&gt;&lt;P&gt;And I am using a R81.10 Management Server, can you test it with this version as well?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:07:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188525#M7911</guid>
      <dc:creator>jimmy1</dc:creator>
      <dc:date>2023-08-03T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188553#M7913</link>
      <description>&lt;P&gt;&amp;nbsp;I did and it failed.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 11:55:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188553#M7913</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-03T11:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple-cluster with groups over API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188563#M7914</link>
      <description>&lt;P&gt;Honestly, I would contact TAC and provide all the details, as it appears R81.10 code related.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:22:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-simple-cluster-with-groups-over-API/m-p/188563#M7914</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-03T13:22:32Z</dc:date>
    </item>
  </channel>
</rss>

