You can call this operation to associate a database.
Debugging
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
Examples
Sample requests
http(s)://[Endpoint]/? Action=XpackRelateDB
&ClusterId=ap-bp1qtz9rcbbt3p6ng
&DbClusterIds=hb-bp16o0pd52e3y582s
&RelateDbType=hbase
&<Common request parameters>
Sample success responses
XML
format
<RequestId>50373857-C47B-4B64-9332-D0B5280B59EA</RequestId>
JSON
format
{
"RequestId":"50373857-C47B-4B64-9332-D0B5280B59EA"
}
Error codes
For a list of error codes, visit the API Error Center.