You can export all the rules as XML for the entire topology. You can find this menu item in the Micro-Segmentation Planning page as follows:
The Export as XML option is available only for the following entities:
If the planning scope spans a single NSX Manager only, the generated artifacts contain the XML files corresponding to the recommended services and firewall rules. If the planning scope spans multiple NSX managers, the generated artifacts contain the XML files corresponding to the recommended services, IPsets, security groups, and the firewall rules.
The following are the placeholder artifacts for security groups:
You can export all the rules as XML or CSV for a particular wedge or edge depicted in the topology diagram.