Associates databases with a specified instance.

Request parameters

Parameter Type Required Example Description
Action String Yes XpackRelateDB

The operation that you want to perform. Set the value to XpackRelateDB.

ClusterId String Yes ap-bp1qtz9rcbbt3****

The ID of the Apache Spark instance.

DbClusterIds String Yes hb-bp16o0pd52e3****

The ID of the database instance with which the instance is associated.

RelateDbType String Yes hbase

The type of the databases with which the instance is associated. Valid values:

  • hdfs
  • hbase
  • mongodb
  • mysql
  • polardb_mysql
  • redis
  • geomesa

Response parameters

Parameter Type Example Description
RequestId String 50373857-C47B-4B64-9332-D0B5280B59EA

The ID of the request.

Examples

Sample requests

http(s)://hbase.aliyuncs.com/?Action=XpackRelateDB
&ClusterId=ap-bp1qtz9rcbbt3p6ng
&DbClusterIds=hb-bp16o0pd52e3y582s
&RelateDbType=hbase
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RequestId>50373857-C47B-4B64-9332-D0B5280B59EA
</RequestId>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "50373857-C47B-4B64-9332-D0B5280B59EA"
}

Error codes

For a list of error codes, visit the API Error Center.