I am using the GitHub - vmware/vsphere-automation-sdk-python: Python samples, language bindings, and API reference documentation for vS… to gather information about infrastructure.
However since i have been asked to pull "everything that i can find" then filter later. I am wondering if there are any helper functions which will help me turn the managed objects(vim.VirtualMachine, vim.Datastore, vim.HostSystem) which i get back from a view into json objects or dict objects.
When i use the Power-CLI i am able to get a lot of information by running:
> Get-VMHost vm-2 | Format-List
Are there any helper functions for this available in the python sdk or do i have to hardcode each key i am interested in and create the dict object that way?
Thanks