Managing NSX Edge services gateways

NSX Edge services gateways are for the connection between your data center and external networks. This is what we also call North-South network traffic. NSX Edge services gateways are deployed as a virtual appliance and provide services, such as VPN, NAT, load balancing, DHCP, and firewall.

Retrieving NSX Edge services gateways

To retrieve NSX edge services gateways, we use the same URI as in the preceding section, Creating NSX Edge services gateways , and save it in the variable $Uri, as follows:

PowerCLI C:\> $Uri = "https://$NSXManager/api/4.0/edges"

We use the Invoke-RestMethod cmdlet with the GET method to retrieve the edges and save the result in the variable $xml, using the following command:

PowerCLI ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.