更新时间:2023-05-24 GMT+08:00
分享

获取跨源连接

功能介绍

该接口用于获取跨源连接。

URI

GET /v1/{project_id}/datasource-connection

参数说明请参见表1-URI参数说明
表1 URI参数说明

名称

是否必选

类型

说明

project_id

String

项目编号,用于资源隔离。获取方法请参见获取项目ID

请求消息

暂不涉及

响应消息

响应参数请参见表2 响应参数说明
表2 响应参数说明

参数名称

是否必选

参数类型

说明

is_success

Boolean

是否成功。

connections

List

请参见表3,跨源连接列表。

表3 connections参数说明

参数名称

是否必选

参数类型

说明

id

String

标识ID。

cluster_name

String

集群名称。

status

String

集群状态。

is_register

Boolean

是否注册。

示例

  • 成功响应示例
    {
        "is_success": true,
        "connections": [
            {
                "connection_id": "914ba558-35e1-4fcf-a848-5f193e3b2444",
                "name": "a",
                "destination": "cloudtable-res-zk2-rpbIBWT5.cloudtable.com:2181,cloudtable-res-zk3-gqefTdc8.cloudtable.com:2181,cloudtable-res-zk1-3FsKGq9h.cloudtable.com:2181",
                "state": "FAILED",
                "cluster_name": "",
                "service": "CloudTable",
                "create_time": "1566887641603",
                "cloudtable_name": "cloudtable-res"
            }
        ]
    
    }
  • 失败响应示例
    {
        "is_success": false,
        "error_code": "res.1006",
        "error_msg": "The content for the request is invalid."
    }

状态码

状态码请参见状态码

分享:

    相关文档

    相关产品