Associates a database.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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 current Apache Spark instance.

DbClusterIds String Yes hb-bp16o0pd52e3****

The ID of the instance to associate with.

RelateDbType String Yes hbase

The type of the database to associate with. Valid values for an Apache Spark instance:

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

Response parameters

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

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "50373857-C47B-4B64-9332-D0B5280B****"

Error codes

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