def dc_get(service, name=None): return esx_objects_retrieve(service, vim.Datacenter, EsxDataCenter, name)
def pool_get(service, name=None): return esx_objects_retrieve(service, vim.ResourcePool, EsxResourcePool, name)
def host_get(service, name=None): return esx_objects_retrieve(service, vim.HostSystem, EsxHost, name)
def cluster_get(service, name=None): return esx_objects_retrieve(service, vim.ClusterComputeResource, EsxCluster, name)
def folder_get(service, name=None): return esx_objects_retrieve(service, vim.Folder, EsxFolder, name)
def ds_get(service, name=None): return esx_objects_retrieve(service, vim.Datastore, EsxDataStore, name)