You can call this operation to associate 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-bp1qtz9rcbbt3p6ng

The ID of the current Spark instance.

DbClusterIds String Yes hb-bp16o0pd52e3y582s

The ID of the cluster instance to associate.

RelateDbType String Yes hbase

The type of the database to associate.

Valid values for Spark: hdfs, hbase, mongodb, mysql, polardb_mysql, redis, and geomesa.

Response parameters


Sample requests

http(s)://[Endpoint]/? Action=XpackRelateDB
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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