def get_properties_for_a_collection_of_objects(vim, type, obj_list, properties):
 client_factory = vim.client.factory
 if (len(obj_list) == 0):
  return []
 prop_spec = get_prop_spec(client_factory, type, properties)
 lst_obj_specs = []
 for obj in obj_list:
  lst_obj_specs.append(get_obj_spec(client_factory, obj))
 prop_filter_spec = get_prop_filter_spec(client_factory, lst_obj_specs, [prop_spec])
 options = client_factory.create('ns0:RetrieveOptions')
 options.maxObjects = CONF.vmware.maximum_objects
 return vim.RetrievePropertiesEx(vim.service_content.propertyCollector, specSet=[prop_filter_spec], options=options)

def get_properties_for_a_collection_of_objects ( vim , type , obj_list , properties ) : client_factory = vim . client . factory if ( len ( obj_list ) == 0 ) : return [ ] prop_spec = get_prop_spec ( client_factory , type , properties ) lst_obj_specs = [ ] for obj in obj_list : lst_obj_specs . append ( get_obj_spec ( client_factory , obj ) ) prop_filter_spec = get_prop_filter_spec ( client_factory , lst_obj_specs , [ prop_spec ] ) options = client_factory . create ( 'ns0:RetrieveOptions' ) options . maxObjects = CONF . vmware . maximum_objects return vim . RetrievePropertiesEx ( vim . service_content . propertyCollector , specSet = [ prop_filter_spec ] , options = options )
gets the list of properties for the collection of objects of the type specified .