Authenticate to NSX Manager via API
When working with the NSX API, the first step is always authentication. Load up your NSX Manager FQDN (or IP address), along with the NSX Manager username and password as variables in your code. The following code will take your variables and convert them to base64 for consumption and authenticate to NSX Manager via API:…