def get_all_hosts(resource_root, view=None):
    return types.call(resource_root.get, HOSTS_PATH, ApiHost, True,
                      params=(dict(view=view) if view else None))
Get all hosts
dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/client/hosts.py/get_all_hosts