March 2018
Beginner
584 pages
14h 51m
English
In this example, we made HTTP GET and HTTP POST requests using functions from the Requests Python module. To use the functions, we import the module first by adding the import requests at the beginning of a code.
The required values, such as the FQDN or IP of NSX Manager, URL, headers, and credentials, are stored in variables so they can be reused:
nsxmanager = 'https://nsxmgr-01a.corp.local'nsxurl = '/api/2.0/services/usermgmt/user/admin'nsxheaders = {'Content-Type': 'application/xml'}nsxuser = 'admin'nsxpass = 'VMware1!'
Read now
Unlock full access