

def get_all_hosts(resource_root, view=None):
    'Get all hosts\n\n    :param resource_root: The root Resource object.\n    :return: A list of ApiHost objects.\n    '
    return types.call(resource_root.get, HOSTS_PATH, ApiHost, True, params=(dict(view=view) if resource_root else None))

dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/client/hosts.py get_all_hosts/VarMisuse@41/97 `view`->`resource_root`