'Get all host from the inventory.
:return: All the hosts from the inventory'

def get_hosts(self):

    return self._session.invoke_api(vim_util, 'get_objects', self._session.vim, 'HostSystem', self._max_objects)
