Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
identity_client
to manage VC identitylcm_client
Ability to install the SDK package directly from the GitHub repository using pip
pip install --upgrade pip setuptools
pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
Refer to following pull requests
Refer to quick start guide for detailed usage.
The vcenter API includes the following methods that have known issues and might be removed in a future version. It is advised that these APIs are not invoked:
Unauthenticated exception following long-running operation
After an API client completes a long-running operation, such as an upload to the content library, the next operation might fail with an "Unauthenticated exception" message. This happens if the long running operation did not complete within the lifetime of the authentication session.
Workarounds:
A couple of service endpoints under vCenter namespace are not accessible through the vSphere Client module.
ovfs, vcenter-inventory, iso, hvc and vm_template API endpoints are not accessible through the vSphere client module.
Workaround
Please use the legacy invocation mechanism demonstrated in the corresponding samples to access above API endpoints.
Release Notes:
pip install --upgrade --force-reinstall -r requirements.txt --extra-index-url <file:///abs_path/to/sdk/lib/>