code: def get_root_resource(server_host, server_port=None,
                        username="admin", password="admin",
                        use_tls=False, version=API_CURRENT_VERSION):
    
    return ApiResource(server_host, server_port, username, password, use_tls,
        version)
docs: See ApiResource.