<?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 for removing object from a group in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110962#M5596</link>
    <description>&lt;P&gt;To the best of my knowledge, Check Point does not offer a REST API. The above can be done via the HTTPS RPC-ish API by calling /set-group with a JSON object in the body like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
	"uid":"&amp;lt;group UUID&amp;gt;",
	"members":{
		"remove":[
			"&amp;lt;member 0 UUID&amp;gt;",
			"&amp;lt;member 1 UUID&amp;gt;",
			...
			"&amp;lt;member n UUID&amp;gt;"
		]
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;I haven't made this exact call myself, but the pattern matches how I have made other, similar calls.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 20:39:41 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2021-02-16T20:39:41Z</dc:date>
    <item>
      <title>API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110954#M5593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was looking in previous discussions regarding API call for removing an object from a group and at that point in time there was no specific API call for this. I also checked the new API releases but I am not able to find that. I was wondering if this is something on the roadmap or if there is already solution that I have missed.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 19:35:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110954#M5593</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-02-16T19:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110957#M5594</link>
      <description>&lt;P&gt;It's in the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-group~v1" target="_self"&gt;Management API documentation&lt;/A&gt;, as the second case for the 'members' property in 'set group'. Dates all the way back to API version 1.0, so it should work on any R80-family management:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set group uid &amp;lt;group UUID&amp;gt; members.remove &amp;lt;member UUID&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;or for multiple members:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set group uid &amp;lt;group UUID&amp;gt; members.remove.0 &amp;lt;member UUID&amp;gt; members.remove.1 &amp;lt;member UUID&amp;gt; ... members.remove.&amp;lt;n&amp;gt; &amp;lt;member UUID&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same option is present for 'set service-group'.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 20:22:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110957#M5594</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-02-16T20:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110958#M5595</link>
      <description>&lt;P&gt;Thanks for sharing the info. I think I found the REST API option for that as well!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 20:30:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110958#M5595</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-02-16T20:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110962#M5596</link>
      <description>&lt;P&gt;To the best of my knowledge, Check Point does not offer a REST API. The above can be done via the HTTPS RPC-ish API by calling /set-group with a JSON object in the body like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
	"uid":"&amp;lt;group UUID&amp;gt;",
	"members":{
		"remove":[
			"&amp;lt;member 0 UUID&amp;gt;",
			"&amp;lt;member 1 UUID&amp;gt;",
			...
			"&amp;lt;member n UUID&amp;gt;"
		]
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;I haven't made this exact call myself, but the pattern matches how I have made other, similar calls.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 20:39:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110962#M5596</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-02-16T20:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110963#M5597</link>
      <description>&lt;P&gt;Thanks Bob,&lt;/P&gt;&lt;P&gt;I was referring to the same Web Service call.&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 20:42:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/110963#M5597</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-02-16T20:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/111071#M5616</link>
      <description>&lt;P&gt;Interesting, I am using the following code:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"vince_test_group"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"members"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"remove"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"vince_test"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and I am getting this error 400 Bad Request:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"generic_err_invalid_parameter_name"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Unrecognized&amp;nbsp;parameter&amp;nbsp;[members]"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My groups is vince_test_group and vince_test is a host object within the group. I tried with both the uid and the object names but still getting this error. I am using Postman. Any ideas?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Vince&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Feb 2021 18:45:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/111071#M5616</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-02-17T18:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/111073#M5618</link>
      <description>&lt;P&gt;What API point are you sending that to? That's the response I would expect for /set-host, for example, because hosts don't have members.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:13:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/111073#M5618</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-02-17T19:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: API call for removing object from a group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/111074#M5619</link>
      <description>&lt;P&gt;Hey Bob,&lt;/P&gt;&lt;P&gt;You are&amp;nbsp; right I as using set-host instead of set-group. That was my bad when I was copying the request from another file.&lt;/P&gt;&lt;P&gt;It is working now, appreciate your help!&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:25:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-call-for-removing-object-from-a-group/m-p/111074#M5619</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-02-17T19:25:43Z</dc:date>
    </item>
  </channel>
</rss>

