code: def get_all_hosts(resource_root, view=None):
    
    return call(resource_root.get, HOSTS_PATH, ApiHost, True,
            params=view and dict(view=view) or None)
docs: Get all hosts
    @param resource_root: The root Resource object.
    @return: A list of ApiHost objects.