How to do it...

This recipe is divided into two parts of REST API requests using Python: retrieving a configuration or information using HTTP GET, and creating a logical switch using HTTP POST.

Get VMware NSX Cookbook 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.