Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

How to get all property key/values for different managed objects?

$
0
0

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


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>