4

I'm trying to get used to Python and VMware vSphere API Python Bindings (pyVmomi). I try to understand the purpose of each component. What's the purpose of pyVim within pyVmomi? From what I understand, pyVim is used for connection handling (creation, deletion...) to the Virtualization Management Object Management Infrastructure (VMOMI). Is this correct?

Thank you & best regards,
Patrick

1 Answer 1

3

That is correct. Also as of recently some new Task handling functionality has been added to pyVim as well. The new task stuff abstract out making property collectors to monitor task progress and such. The connection classes provided allow various authentication methods supported by vSphere such as basic auth, SSPI, and a few others. It also handles disconnecting and cleaning up connections once closed. The VMOMI classes from pyVmomi are the objects inside vSphere like HostSystem, VirtualMachines, Network, etc.

2
  • Thank you Michael! May 11, 2016 at 19:02
  • @michael do you know what's the token required for SSPI as auth method? How can I get a token?
    – Roy Ling
    Jun 18, 2020 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.