<?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 NSX 4.x - API query to return deleted entities (vms), return groups with no effective members in VMware NSX Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/NSX-4-x-API-query-to-return-deleted-entities-vms-return-groups/m-p/2988267#M16936</link>
    <description>&lt;P&gt;I think I saw something like this is the past, in the UI or API documentation, but could not find it now.&lt;/P&gt;&lt;P&gt;Is there a way to search for deleted objects using a REST query on the nsx manager? Or even better, list security groups, that have no effective members? What I want to return by API is basically this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Czernobog_0-1695712928994.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/103682i306914C532ACA886/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Czernobog_0-1695712928994.png" alt="Czernobog_0-1695712928994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the past I would use the "Get effective VMs for the Group" query to get the effective members of a group, but this query is deprecated.&lt;/P&gt;&lt;P&gt;The reason I need this is, that I suspect a lot of groups have no members anymore, and those empty groups are assigned to firewall rule, which in turn have no reason to exist anymore.&lt;/P&gt;&lt;P&gt;The group object returned by a API query does not list the virtual machine member as deleted. The only way to see if a group still has members is to run&amp;nbsp;/policy/api/v1/infra/domains/{domain-id}/groups/{group-id}/members/{member-type}, but this would have to be run fo every possible member type separately.&lt;/P&gt;&lt;P&gt;It would be great to have a method that looks from top to bottom (policy - rule - group) if the firewall policy is still valid, that is, if it is not applied to empty security groups.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 07:29:11 GMT</pubDate>
    <dc:creator>Czernobog</dc:creator>
    <dc:date>2023-09-26T07:29:11Z</dc:date>
    <item>
      <title>NSX 4.x - API query to return deleted entities (vms), return groups with no effective members</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/NSX-4-x-API-query-to-return-deleted-entities-vms-return-groups/m-p/2988267#M16936</link>
      <description>&lt;P&gt;I think I saw something like this is the past, in the UI or API documentation, but could not find it now.&lt;/P&gt;&lt;P&gt;Is there a way to search for deleted objects using a REST query on the nsx manager? Or even better, list security groups, that have no effective members? What I want to return by API is basically this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Czernobog_0-1695712928994.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/103682i306914C532ACA886/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Czernobog_0-1695712928994.png" alt="Czernobog_0-1695712928994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the past I would use the "Get effective VMs for the Group" query to get the effective members of a group, but this query is deprecated.&lt;/P&gt;&lt;P&gt;The reason I need this is, that I suspect a lot of groups have no members anymore, and those empty groups are assigned to firewall rule, which in turn have no reason to exist anymore.&lt;/P&gt;&lt;P&gt;The group object returned by a API query does not list the virtual machine member as deleted. The only way to see if a group still has members is to run&amp;nbsp;/policy/api/v1/infra/domains/{domain-id}/groups/{group-id}/members/{member-type}, but this would have to be run fo every possible member type separately.&lt;/P&gt;&lt;P&gt;It would be great to have a method that looks from top to bottom (policy - rule - group) if the firewall policy is still valid, that is, if it is not applied to empty security groups.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 07:29:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/NSX-4-x-API-query-to-return-deleted-entities-vms-return-groups/m-p/2988267#M16936</guid>
      <dc:creator>Czernobog</dc:creator>
      <dc:date>2023-09-26T07:29:11Z</dc:date>
    </item>
  </channel>
</rss>

