調(diào)用CreateRDSToClickhouseDb接口創(chuàng)建云數(shù)據(jù)庫ClickHouse社區(qū)兼容版同步任務(wù)。
接口說明
說明
該接口僅適用于云數(shù)據(jù)庫 ClickHouse 的社區(qū)兼容版集群。
調(diào)試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無授權(quán)信息透出。
請求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DbClusterId | string | 是 | 云數(shù)據(jù)庫 ClickHouse 的集群 ID。 | cc-2ze5zeyl72188**** |
ClickhousePort | long | 否 | 云數(shù)據(jù)庫 ClickHouse 的端口號。 | 8123 |
CkUserName | string | 是 | 云數(shù)據(jù)庫 ClickHouse 的數(shù)據(jù)庫賬號。 | user1 |
CkPassword | string | 是 | 云數(shù)據(jù)庫 ClickHouse 的數(shù)據(jù)庫賬號密碼。 | 123456Aa |
RdsId | string | 是 | 云數(shù)據(jù)庫 RDS MySQL 的實例 ID。 | rm-8vb989qj9roh0**** |
RdsPort | long | 否 | 云數(shù)據(jù)庫 RDS MySQL 的端口號。 | 3306 |
RdsVpcId | string | 否 | 云數(shù)據(jù)庫 RDS MySQL 的 VPC ID。 | vpc-2zen93xryil99jsfy**** |
RdsUserName | string | 是 | 云數(shù)據(jù)庫 RDS MySQL 的數(shù)據(jù)庫賬號。 | user2 |
RdsPassword | string | 是 | 云數(shù)據(jù)庫 RDS MySQL 的數(shù)據(jù)庫賬號密碼。 | 123456Rr |
SkipUnsupported | boolean | 是 | 是否忽略不支持同步的表結(jié)構(gòu),取值說明:
| true |
LimitUpper | long | 否 | 每秒最多同步的行數(shù)。 | 50000 |
SynDbTables | string | 是 | 同步的表。 | [{"Schema":"recommend","Tables":["mr_platform_cpm","mr_platform_ecpm","p_monitor_record"]}] |
RdsVpcUrl | string | 否 | 云數(shù)據(jù)庫 RDS 的內(nèi)網(wǎng)地址。 | rm-bp16t9h3999xb0a7****.mysql.rds.aliyuncs.com |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"RequestId": "66676F54-1994-5DCF-993F-74536649628A",
"Status": 0,
"ErrorMsg": "ClickHouse exception, code: 49, host: 100.100.79.102, port: 14540; Code: 49, e.displayText() = DB::Exception: Logical error: there is no global context (version 20.8.17.25)n",
"RepeatedDbs": [
"[\"mr_platform_cpm\",\"mr_platform_ecpm\"]"
]
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | 您指定的 DBClusterId 不存在,請確認(rèn) DBClusterId 值是否正確。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內(nèi)容概要 | 操作 |
---|
暫無變更歷史