Earlier this week I had published an article on how to get started with the new NSX-T Policy API in VMware Cloud on AWS (VMC), if you have not read through that guide yet, I recommend you take a look at that first as this covers the prerequisites which will be required. As mentioned in that article, I planned to add a few more NSX-T Policy API examples and now the community NSX-T Policy PowerShell includes 37 additional functions which you can see the complete list below:
- Connect-NSXTProxy
- Get-NSXTFirewall
- Get-NSXTGroup
- Get-NSXTSegment
- Get-NSXTService
- New-NSXTFirewall
- New-NSXTGroup
- New-NSXTSegment
- New-NSXTServiceDefinition (renamed as of 07/01/2019)
- Remove-NSXTFirewall
- Remove-NSXTGroup
- Remove-NSXTSegment
- Get-NSXTDistFirewallSection (as of 01/02/2019)
- Get-NSXTDistFirewall (as of 01/02/2019)
- New-NSXTDistFirewall (as of 01/03/2019)
- Remove-NSXTDistFirewall (as of 01/03/2019)
- Get-NSXTOverviewInfo (as of 02/02/2019)
-
Get-NSXTInfraScope (as of 03/14/2019)
-
Get-NSXTInfraGroup (as of 03/14/2019)
- New-NSXTDistFirewallSection (as of 04/19/2019)
- Remove-NSXTService (as of 04/19/2019)
- Get-NSXTPolicyBasedVPN (as of 05/09/2019)
- New-NSXTPolicyBasedVPN (as of 05/09/2019)
- Remove-NSXTPolicyBasedVPN (as of 05/09/2019)
- Get-NSXTDNS (as of 06/08/2019)
- Set-NSXTDNS (as of 06/08/2019)
-
Get-NSXTPublicIP (as of 07/01/2019)
- New-NSXTPublicIP (as of 07/01/2019)
- Remove-NSXTPublicIP (as of 07/01/2019)
- Get-NSXTNatRule (as of 07/01/2019)
- New-NSXTNatRule (as of 07/01/2019)
- Remove-NSXTNatRule (as of 07/01/2019)
- Set-NSXTSegment (as of 03/05/2020)
- Get-NSXTT0Stats (as of 07/16/2020)
- Get-NSXTLinkedVpc (as of 08/01/2020)
- Get-NSXTL2VPN (as of 08/01/2020)
- Get-NSXTPortMirror (as of 08/01/2020)
- Get-NSXTIPFIXCollector (as of 08/01/2020)
- Get-NSXTDirectConnectVIF (as of 08/01/2020)
- Get-NSXTVifPerHost (as of 08/01/2020)
- Get-NSXTVM (as of 08/01/2020)
- Get-NSXTSegmentPort (as of 08/01/2020)
- Get-NSXTGroupMember (as of 08/01/2020)
After importing the module, to see the list of all functions, you can run the following command:
Get-Command -Module VMware.VMC.NSXT