<?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: mgmt_cli - delete member from group ? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110965#M5599</link>
    <description>&lt;DIV&gt;updating with single run and how to get it into batch format:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;mgmt_cli -r true set group name &amp;lt;group_name&amp;gt; members.remove &amp;lt;object_name_to_be_removed&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;Batch remove members from group:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Header in txt file:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;group_name, members.remove&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;mygroup, mymember1&lt;/DIV&gt;&lt;DIV&gt;mygroup, mymember2&lt;/DIV&gt;&lt;DIV&gt;mygroup, mymember3&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CLI command to run:&amp;nbsp; &lt;SPAN&gt;mgmt_cli -r true set group name group_name -b batch_file_name.txt&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;if you only do the set it will overwrite everything in group (i've done this before had to put back 350 objects into group)&lt;/P&gt;&lt;P&gt;--Juan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 21:53:40 GMT</pubDate>
    <dc:creator>Juan_Concepcion</dc:creator>
    <dc:date>2021-02-16T21:53:40Z</dc:date>
    <item>
      <title>mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4866#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at first glance, the R80 API documentatoin does not explain how to delete&amp;nbsp; a member from a group.&amp;nbsp; Anybody an idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With dbedit, deleting an object, used in a group, implicitly removed the object from that group.&lt;/P&gt;&lt;P&gt;Trying to delete such an object, in R80.10, results in a warning I don't seem to be able to override.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So :&lt;/P&gt;&lt;P&gt;is there a way - via CLI - to remove a group member ?&lt;/P&gt;&lt;P&gt;or is there a way to delete an object with some "force" attribute in case it is used as member in some group ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 13:03:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4866#M396</guid>
      <dc:creator>Marc_Lampo</dc:creator>
      <dc:date>2017-08-02T13:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4867#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the correct approach is to use the "set group" command specifying all members of the group BUT the one you want to delete.&lt;/P&gt;&lt;P&gt;Having a proper "delete from group" API call seems like a good suggestion for future releases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 15:19:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4867#M397</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2017-08-02T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4868#M398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/where-used~v1.1"&gt;where-used&lt;/A&gt;&lt;SPAN style="color: #0a508b; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;and delete all references &amp;nbsp;.&lt;/P&gt;&lt;P&gt;I do not think that 'force' will be a good idea, you can create a scenario that you break the policy .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For groups,&amp;nbsp;you can use '&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/set-group~v1.1"&gt;remove&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;TABLE style="color: #333333; background-color: #ffffff; margin: 0px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;SPAN class="" style="color: #0a508b;"&gt;groups&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;Object&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A&gt;v&lt;/A&gt;&lt;/TD&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;SPAN class=""&gt;Collection of group identifiers.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD class="" colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;SPAN class="" style="color: #888888;"&gt;or&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;Object&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A&gt;v&lt;/A&gt;&lt;DIV class="" style="margin-top: 14px;"&gt;&lt;TABLE style="background-color: #ffffff; margin: 0px;"&gt;&lt;THEAD class="" style="color: #333333; background: #d7d7d7;"&gt;&lt;TR&gt;&lt;TH style="border-top: 0px; border-bottom: 2px solid #dddddd; padding: 8px;"&gt;Parameter name&lt;/TH&gt;&lt;TH style="border-top: 0px; border-bottom: 2px solid #dddddd; padding: 8px;"&gt;Value&lt;/TH&gt;&lt;TH style="border-top: 0px; border-bottom: 2px solid #dddddd; padding: 8px;"&gt;Description&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #0a508b;"&gt;remove&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;STRONG&gt;string&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Removes from collection of values&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD class="" colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;SPAN class="" style="color: #888888;"&gt;or&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;List: string&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD class="" colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;SPAN class="" style="color: #888888;"&gt;or&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;string&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD class="" colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;SPAN class="" style="color: #888888;"&gt;or&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=""&gt;&lt;TD style="border-top: 1px solid #dddddd; padding: 8px;"&gt;&lt;/TD&gt;&lt;TD colspan="2" style="border-top: 1px solid #dddddd; padding: 8px;"&gt;List: string&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 16:50:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4868#M398</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2017-08-02T16:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4869#M399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give it a try - but the first script I'm moving from R77.30 to R80 put 312 members in a group.&amp;nbsp; If, on the next run, I have to delete one by entering the 311 that should remain ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 17:31:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4869#M399</guid>
      <dc:creator>Marc_Lampo</dc:creator>
      <dc:date>2017-08-02T17:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4870#M400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice one... I didn't catch that the first time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 18:25:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4870#M400</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2017-08-02T18:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4871#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this post &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/thread/4881"&gt;Adding members to a group&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric provided example for '&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;batch'&lt;/SPAN&gt;&amp;nbsp;option , with one CSV file and a few moments you be able to complete the task &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;set group --batch &amp;lt;csvfilename&amp;gt; --format json --ignore-errors true&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 18:37:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4871#M401</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2017-08-02T18:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4872#M402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly enough the &lt;A href="https://sc1.checkpoint.com/documents/R80/APIs/#introduction"&gt;on-line API documentation&lt;/A&gt; does not mention "remove" as possibility ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I already found that adding "ignore-warnings true" to the "mgmt_cli delete network ..." does the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 18:58:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/4872#M402</guid>
      <dc:creator>Marc_Lampo</dc:creator>
      <dc:date>2017-08-02T18:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/61987#M3910</link>
      <description>&lt;P&gt;To remove members from a group (not documented anywhere I could find - trial and error!!!) :&lt;/P&gt;&lt;P&gt;File format:&lt;/P&gt;&lt;P&gt;name,members.remove&lt;/P&gt;&lt;P&gt;group_name,host1&lt;/P&gt;&lt;P&gt;group_name,host2&lt;/P&gt;&lt;P&gt;group_name,host3&lt;/P&gt;&lt;P&gt;group_name,host4&lt;/P&gt;&lt;P&gt;group_name,host5&lt;/P&gt;&lt;P&gt;group_name,host5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Format to run the batch file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mgmt_cli -r true set group name group_name -b batch_file_name.txt&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 20:30:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/61987#M3910</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2019-09-05T20:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110953#M5592</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was looking into that conversation and I would like to ask if there was any solution provided in the new releases?&lt;/P&gt;&lt;P&gt;I am trying to figure out if there is a specific API call that can remove an object from a group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 19:30:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110953#M5592</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-02-16T19:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110964#M5598</link>
      <description>&lt;P&gt;The above solution translates to the following API call:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-group~v1.7" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-group~v1.7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 20:43:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110964#M5598</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-02-16T20:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli - delete member from group ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110965#M5599</link>
      <description>&lt;DIV&gt;updating with single run and how to get it into batch format:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;mgmt_cli -r true set group name &amp;lt;group_name&amp;gt; members.remove &amp;lt;object_name_to_be_removed&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;Batch remove members from group:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Header in txt file:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;group_name, members.remove&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;mygroup, mymember1&lt;/DIV&gt;&lt;DIV&gt;mygroup, mymember2&lt;/DIV&gt;&lt;DIV&gt;mygroup, mymember3&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CLI command to run:&amp;nbsp; &lt;SPAN&gt;mgmt_cli -r true set group name group_name -b batch_file_name.txt&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;if you only do the set it will overwrite everything in group (i've done this before had to put back 350 objects into group)&lt;/P&gt;&lt;P&gt;--Juan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 21:53:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-delete-member-from-group/m-p/110965#M5599</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2021-02-16T21:53:40Z</dc:date>
    </item>
  </channel>
</rss>

