<?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: Export of DFW from NSXT in VMware NSX Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2995091#M17061</link>
    <description>&lt;P&gt;Not PowerCLI, but you should be able to retrieve all DFW rules through the API as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loop through this to get all policy id's:&lt;BR /&gt;GET /policy/api/v1/infra/domains/&amp;lt;domain-id&amp;gt;/security-policies&lt;BR /&gt;&lt;BR /&gt;Then use the results to loop through this to get an overview of all the rule-ids within each policy:&lt;BR /&gt;GET /policy/api/v1/infra/domains/&amp;lt;domain-id&amp;gt;/security-policies/&amp;lt;security-policy-id&amp;gt;/rules&lt;BR /&gt;&lt;BR /&gt;And finally, you could loop this to get the details for every rule within the policy:&lt;BR /&gt;GET /policy/api/v1/infra/domains/&amp;lt;domain-id&amp;gt;/security-policies/&amp;lt;security-policy-id&amp;gt;/rules/&amp;lt;rule-id&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This should allow you to output it all in JSON.&amp;nbsp;&lt;BR /&gt;Alternatively, consider managing the rulebase through IaC, that should give you a permanent overview of your rules in a repository.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 10:04:39 GMT</pubDate>
    <dc:creator>EvertAM</dc:creator>
    <dc:date>2023-11-10T10:04:39Z</dc:date>
    <item>
      <title>Export of DFW from NSXT</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2992660#M17020</link>
      <description>&lt;P&gt;Any one aware of any PowerCLI module or script to export NSXT DFW rule in csv format ?&lt;/P&gt;&lt;P&gt;Appreciate any input.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 16:28:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2992660#M17020</guid>
      <dc:creator>bikashyadav</dc:creator>
      <dc:date>2023-10-25T16:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export of DFW from NSXT</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2992705#M17021</link>
      <description>&lt;P&gt;You can export the security policies from the NSX U.I in CSV format&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 18:12:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2992705#M17021</guid>
      <dc:creator>Sreec</dc:creator>
      <dc:date>2023-10-25T18:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export of DFW from NSXT</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2993967#M17045</link>
      <description>&lt;P&gt;yes that option is there but i was looking for a better formatted data. As the one we get from the gui export is little more of data which again needs to be formatted per requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 17:16:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2993967#M17045</guid>
      <dc:creator>bikashyadav</dc:creator>
      <dc:date>2023-11-02T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export of DFW from NSXT</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2994344#M17046</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Another option would be to leverage VMware Aria Operations for Networks&lt;/FONT&gt;&lt;/P&gt;&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Mon, 06 Nov 2023 11:49:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2994344#M17046</guid>
      <dc:creator>Sreec</dc:creator>
      <dc:date>2023-11-06T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export of DFW from NSXT</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2994366#M17047</link>
      <description>&lt;P&gt;Thanks i will explore vrops and see if it suffice my requirement.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:38:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2994366#M17047</guid>
      <dc:creator>bikashyadav</dc:creator>
      <dc:date>2023-11-06T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export of DFW from NSXT</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2995091#M17061</link>
      <description>&lt;P&gt;Not PowerCLI, but you should be able to retrieve all DFW rules through the API as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loop through this to get all policy id's:&lt;BR /&gt;GET /policy/api/v1/infra/domains/&amp;lt;domain-id&amp;gt;/security-policies&lt;BR /&gt;&lt;BR /&gt;Then use the results to loop through this to get an overview of all the rule-ids within each policy:&lt;BR /&gt;GET /policy/api/v1/infra/domains/&amp;lt;domain-id&amp;gt;/security-policies/&amp;lt;security-policy-id&amp;gt;/rules&lt;BR /&gt;&lt;BR /&gt;And finally, you could loop this to get the details for every rule within the policy:&lt;BR /&gt;GET /policy/api/v1/infra/domains/&amp;lt;domain-id&amp;gt;/security-policies/&amp;lt;security-policy-id&amp;gt;/rules/&amp;lt;rule-id&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This should allow you to output it all in JSON.&amp;nbsp;&lt;BR /&gt;Alternatively, consider managing the rulebase through IaC, that should give you a permanent overview of your rules in a repository.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 10:04:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Discussions/Export-of-DFW-from-NSXT/m-p/2995091#M17061</guid>
      <dc:creator>EvertAM</dc:creator>
      <dc:date>2023-11-10T10:04:39Z</dc:date>
    </item>
  </channel>
</rss>

