调用QueryXpackRelateDB查询当前实例可关联的数据库列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String QueryXpackRelateDB

系统规定参数。取值:QueryXpackRelateDB。

ClusterId String ap-bp1qtz9rcbbt3p6ng

当前Spark实例ID

RelateDbType String hbase

要查询可关联数据库类型

  • spark可以关联hdfs,hbase,mongodb,mysql,polardb_mysql,redis,geomesa
  • bds可以关联hbase,spark,hbaseue
HasSingleNode Boolean false

仅对bds查询关联hbase有效。

  • true:会包含单节点HBase。
  • false:不包含单节点HBase。非必填,为兼容之前逻辑为空时会包含单节点HBase。

返回数据

名称 类型 示例值 描述
ClusterList Array of Cluster

可关联的数据库列表

Cluster
ClusterId String hb-bp16o0pd52e3y582s

实例ID

ClusterName String hbase_test

实例名称

DBType String hbase

实例数据库类型

DBVersion String 2.0

实例版本

IsRelated Boolean false

实例是否已关联

LockMode String ..

锁定模式

Status String ACTIVATION

实例状态

RequestId String 288E9010-36DD-499C-B4DA-61E4362DA4CC

请求ID

示例

请求示例

http(s)://[Endpoint]/?Action=QueryXpackRelateDB
&ClusterId=ap-bp1qtz9rcbbt3p6ng
&RelateDbType=hbase
&<公共请求参数>

正常返回示例

XML格式

<RequestId>288E9010-36DD-499C-B4DA-61E4362DA4CC</RequestId>
<ClusterList>
    <Cluster>
        <Status>ACTIVATION</Status>
        <ClusterName>baitu-new-mem</ClusterName>
        <ClusterId>hb-bp16fd5z8srk9216p</ClusterId>
        <IsRelated>false</IsRelated>
        <DBType>hbase</DBType>
    </Cluster>
    <Cluster>
        <Status>COMP_ADDING</Status>
        <ClusterName>tianyin-ha2</ClusterName>
        <ClusterId>hb-bp16f1441y6p2kv2l</ClusterId>
        <IsRelated>false</IsRelated>
        <DBType>hbase</DBType>
    </Cluster>
    <Cluster>
        <Status>ACTIVATION</Status>
        <ClusterName>tianyin-ha1</ClusterName>
        <ClusterId>hb-bp1eu91b79o8h0n7i</ClusterId>
        <IsRelated>false</IsRelated>
        <DBType>hbase</DBType>
    </Cluster>
    <Cluster>
        <Status>ACTIVATION</Status>
        <ClusterName>wangjk-HBase</ClusterName>
        <ClusterId>hb-bp16o0pd52e3y582s</ClusterId>
        <IsRelated>false</IsRelated>
        <DBType>hbase</DBType>
    </Cluster>
    <Cluster>
        <Status>ACTIVATION</Status>
        <ClusterName>test-hbase-RESERVE</ClusterName>
        <ClusterId>hb-bp15w8hyzqi59p5yn</ClusterId>
        <IsRelated>false</IsRelated>
        <DBType>hbase</DBType>
    </Cluster>
</ClusterList>

JSON格式

{
  "RequestId": "288E9010-36DD-499C-B4DA-61E4362DA4CC",
  "ClusterList": {
    "Cluster": [
      {
        "Status": "ACTIVATION",
        "ClusterName": "baitu-new-mem",
        "ClusterId": "hb-bp16fd5z8srk9216p",
        "IsRelated": false,
        "DBType": "hbase"
      },
      {
        "Status": "COMP_ADDING",
        "ClusterName": "tianyin-ha2",
        "ClusterId": "hb-bp16f1441y6p2kv2l",
        "IsRelated": false,
        "DBType": "hbase"
      },
      {
        "Status": "ACTIVATION",
        "ClusterName": "tianyin-ha1",
        "ClusterId": "hb-bp1eu91b79o8h0n7i",
        "IsRelated": false,
        "DBType": "hbase"
      },
      {
        "Status": "ACTIVATION",
        "ClusterName": "wangjk-HBase",
        "ClusterId": "hb-bp16o0pd52e3y582s",
        "IsRelated": false,
        "DBType": "hbase"
      },
      {
        "Status": "ACTIVATION",
        "ClusterName": "test-hbase-RESERVE",
        "ClusterId": "hb-bp15w8hyzqi59p5yn",
        "IsRelated": false,
        "DBType": "hbase"
      }
    ]
  }
}

错误码

访问错误中心查看更多错误码。