{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"DbConfig":{"description":"数据库配置。","properties":{"param_name":{"description":"参数名。","maxLength":1024,"minLength":2,"type":"string"},"value":{"description":"参数值。","maxLength":1024,"minLength":2,"type":"string"}},"type":"object"},"DbConfigCheckResult":{"description":"库配置校验检查结果。","properties":{"check_result":{"description":"校验结果。","enum":["success","fail"],"maxLength":1024,"minLength":1,"type":"string"},"param_name":{"description":"参数名。","maxLength":128,"minLength":2,"type":"string"},"value":{"description":"参数值。","maxLength":64,"minLength":1,"type":"string"}},"type":"object"},"ErrorRsp":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码。","example":"DBS.280292","type":"string"},"error_msg":{"description":"错误描述。","example":"数据库用户名非法","type":"string"}},"required":["error_code","error_msg"],"type":"object"},"ModifyDataSyncConfigRequestV3":{"description":"StarRocks修改配置请求体。","properties":{"db_configs":{"description":"**参数解释**:\n\n库配置列表。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n不涉及。\n\n**默认值**:\n\n不涉及。","items":{"$ref":"#/definitions/DbConfig"},"type":"array"},"source_database_name":{"description":"**参数解释**:\n\nTaurusDB数据库名。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n字符长度限制3~1024位,仅支持英文大小写字母、数字以及下划线。\n\n**默认值**:\n\n不涉及。","type":"string"},"source_instance_id":{"description":"**参数解释**:\n\nTaurusDB实例ID。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n只能由英文字母、数字组成,后缀为in07,长度为36个字符。\n\n**默认值**:\n\n不涉及。","type":"string"},"source_node_id":{"description":"**参数解释**:\n\nTaurusDB只读节点ID。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n只能由英文字母、数字组成,后缀为no07,长度为36个字符。\n\n**默认值**:\n\n不涉及。","type":"string"},"table_repl_config":{"$ref":"#/definitions/TableReplConfig","description":"**参数解释**:\n\n表同步配置信息。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n不涉及。\n\n**默认值**:\n\n不涉及。"},"tables_configs":{"description":"**参数解释**:\n\n表配置信息。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n不涉及。\n\n**默认值**:\n\n不涉及。","items":{"$ref":"#/definitions/TablesConfig"},"type":"array"},"target_database_name":{"description":"**参数解释**:\n\n目标数据库名。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n长度限制3~128位,仅支持英文大小写字母、数字以及下划线。\n\n**默认值**:\n\n不涉及。","type":"string"},"task_name":{"description":"**参数解释**:\n\n数据同步任务名称。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n长度限制3~128位,仅支持英文大小写字母、数字以及下划线。\n\n**默认值**:\n\n不涉及。","type":"string"}},"type":"object"},"ModifyDataSyncConfigResponseV3":{"description":"修改同步配置响应。","properties":{"job_id":{"description":"**参数解释**:\n\n修改同步配置工作流ID。\n\n**取值范围**:\n\n不涉及。","type":"string"},"source_database_name":{"description":"**参数解释**:\n\nTaurusDB数据库名。\n\n**取值范围**:\n\n长度限制3~1024位,仅支持英文大小写字母、数字以及下划线。","type":"string"},"source_db_config_check_results":{"description":"**参数解释**:\n\nTaurusDB数据库配置检查结果。\n\n**取值范围**:\n\n不涉及。","items":{"$ref":"#/definitions/DbConfigCheckResult"},"type":"array"},"target_database_name":{"description":"**参数解释**:\n\n目标数据库名。\n\n**取值范围**:\n\n长度限制3~1024位,仅支持英文大小写字母、数字以及下划线。","type":"string"},"task_name":{"description":"**参数解释**:\n\n同步任务名称。\n\n**取值范围**:\n\n长度限制3~128位,仅支持英文大小写字母、数字以及下划线。","type":"string"},"tbl_config_check_results":{"description":"**参数解释**:\n\n表配置检查结果。\n\n**取值范围**:\n\n不涉及。","items":{"$ref":"#/definitions/TableConfigCheckResult"},"type":"array"}},"type":"object"},"TableConfigCheckResult":{"description":"表配置校验结果。","properties":{"check_result":{"description":"校验结果。","maxLength":10,"minLength":2,"type":"string"},"table_config":{"description":"表配置项。","maxLength":1024,"minLength":2,"type":"string"},"table_name":{"description":"表名。","maxLength":1024,"minLength":2,"type":"string"}},"type":"object"},"TableReplConfig":{"description":"表同步配置。","properties":{"repl_scope":{"default":"all","description":"表同步范围。all:全量同步,part:部分同步。","enum":["all","part"],"maxLength":5,"minLength":3,"type":"string"},"repl_type":{"description":"表同步类型。include_tables:白名单,exclude_tables:黑名单。","enum":["include_tables","exclude_tables"],"maxLength":15,"minLength":2,"type":"string"},"tables":{"description":"白名单或黑名单的表范围。","items":{"maxLength":1024,"minLength":2,"type":"string"},"maxItems":5000,"minItems":0,"type":"array"}},"type":"object"},"TablesConfig":{"description":"表配置。","properties":{"table_config":{"description":"表配置值。","maxLength":1024,"minLength":0,"type":"string"},"table_name":{"description":"表名。","maxLength":128,"minLength":0,"type":"string"}},"type":"object"}},"description":null,"group_id":"1bf15763f8164608918d180a9b1aa137","host":"gaussdb.cn-north-4.myhuaweicloud.com","id":"4f409a675a51494f806d4086614d86ae","info_version":"v3","method":"put","name":"ModifyDataSync","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication":{"put":{"description":"修改StarRocks数据同步配置。","operationId":"ModifyDataSync","parameters":[{"description":"**参数解释**:\n\n租户在某一Region下的project ID。\n\n获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n只能由英文字母、数字组成,且长度为32个字符。\n\n**默认值**:\n\n不涉及。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"**参数解释**:\n\n修改StarRocks数据同步配置请求体。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n不涉及。\n\n**默认值**:\n\n不涉及。","in":"body","name":"ModifyDataSyncRequestBody","required":true,"schema":{"$ref":"#/definitions/ModifyDataSyncConfigRequestV3"}},{"description":"**参数解释**:\n\n用户Token。 通过调用IAM服务[获取用户Token](https://support.huaweicloud.com/api-iam/iam_30_0001.html)接口获取。 \n\n请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n不涉及。\n\n**默认值**:\n\n不涉及。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"**参数解释**:\n\n请求语言类型。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n- en-us\n- zh-cn\n\n**默认值**:\n\nen-us。","in":"header","name":"X-Language","required":true,"type":"string"},{"description":"**参数解释**:\n\nStarRocks实例ID,严格匹配UUID规则。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\n只能由英文字母、数字组成,后缀为in17,且长度为36个字符。\n\n**默认值**:\n\n不涉及。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"**参数解释**:\n\n内容类型。\n\n**约束限制**:\n\n不涉及。\n\n**取值范围**:\n\napplication/json。\n\n**默认值**:\n\napplication/json。","in":"header","name":"Content-Type","required":true,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"Success.","examples":{"application/json":{"job_id":"job_id","source_database_name":"source_database_name","source_db_config_check_results":[{"check_result":"success","param_name":"enable_chunk_level_dump","value":"false"},{"check_result":"success","param_name":"snapshot_with_lock","value":"true"}],"target_database_name":"target_database_name","task_name":"task","tbl_config_check_results":[{"check_result":"success","table_config":"order by id","table_name":"table"}]}},"schema":{"$ref":"#/definitions/ModifyDataSyncConfigResponseV3"}},"400":{"description":"Client error.","examples":{"application/json":{"error_code":"DBS.200022","error_msg":"实例不存在"}},"schema":{"$ref":"#/definitions/ErrorRsp"}},"500":{"description":"Server error.","schema":{"$ref":"#/definitions/ErrorRsp"}}},"summary":"修改StarRocks数据同步配置","tags":["HTAP-标准版"],"x-apigateway-ratelimit":"gaussdbformysql01","x-is-registered":"Y","x-request-examples-1":{"db_configs":[{"param_name":"enable_chunk_level_dump","value":"false"},{"param_name":"snapshot_with_lock","value":"true"},{"param_name":"sync_commit_interval_ms","value":"5000"},{"param_name":"max_sync_commit_rows","value":"500000"},{"param_name":"max_sync_commit_bytes","value":"268435456"},{"param_name":"max_full_sync_task_threads_num","value":"1"},{"param_name":"max_rows_per_chunk","value":"0"},{"param_name":"max_bytes_per_chunk","value":"268435456"},{"param_name":"binlog_expire_logs_seconds","value":"0"}],"is_create_task":"true","source_database_name":"source_database_name","source_instance_id":"source_instance_id","source_node_id":"source_node_id","table_repl_config":{"repl_scope":"all","repl_type":"include_tables","tables":[]},"tables_configs":{"table_config":"tableConfig","table_name":"tableName"},"target_database_name":"target_database_name"},"x-request-examples-text-1":{"db_configs":[{"param_name":"enable_chunk_level_dump","value":"false"},{"param_name":"snapshot_with_lock","value":"true"},{"param_name":"sync_commit_interval_ms","value":"5000"},{"param_name":"max_sync_commit_rows","value":"500000"},{"param_name":"max_sync_commit_bytes","value":"268435456"},{"param_name":"max_full_sync_task_threads_num","value":"1"},{"param_name":"max_rows_per_chunk","value":"0"},{"param_name":"max_bytes_per_chunk","value":"268435456"},{"param_name":"binlog_expire_logs_seconds","value":"0"}],"is_create_task":"true","source_database_name":"source_database_name","source_instance_id":"source_instance_id","source_node_id":"source_node_id","table_repl_config":{"repl_scope":"all","repl_type":"include_tables","tables":[]},"tables_configs":{"table_config":"tableConfig","table_name":"tableName"},"target_database_name":"target_database_name"},"x-request-examples-url-1":"PUT https://{localhost}/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication","x-support-sdk":"Y"}}},"product_short":"GaussDB","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改StarRocks数据同步配置","tags":"HTAP-标准版","uri":null,"version":"2.0"}