tencent cloud

数据传输服务

动态与公告
产品动态
公告
产品简介
产品概述
数据迁移功能描述
数据同步功能描述
数据订阅(Kafka 版)功能描述
产品优势
支持的地域
规格说明
购买指南
计费概述
变更配置说明
欠费说明
退费说明
快速入门
数据迁移操作指导
数据同步操作指导
数据订阅操作指导(Kafka 版)
准备工作
业务评估
网络准备
添加 DTS IP 地址至对接数据库白名单
DTS 服务权限准备
数据库及权限准备
配置自建 MySQL 系的 Binlog
数据迁移
数据迁移支持的数据库
云数据库跨账号实例间迁移
迁移至 MySQL 系列
迁移至 PostgreSQL
迁移至 MongoDB
迁移至 SQL Server
迁移至腾讯云分布式缓存数据库
任务管理
数据同步
数据同步支持的数据库
云数据库跨账号实例间同步
同步至 MySQL 系列
同步至 PostgreSQL
同步至 MongoDB
同步至 Kafka
任务管理
数据订阅(Kafka 版)
数据订阅支持的数据库
MySQL 系列数据订阅
TDSQL PostgreSQL 数据订阅
MongoDB 数据订阅
任务管理
消费管理
前置校验不通过处理方法
检查项汇总
割接说明
监控与告警
支持的监控指标
告警通知功能
通过控制台配置指标告警和事件告警
通过 API 配置指标告警和事件告警
运维管理
配置系统维护时间
任务状态扭转说明
实践教程
本地数据库同步上云
构建双向同步数据结构
构建多对一同步数据结构
构建多活数据中心
数据同步冲突策略如何选择
使用 CLB 代理将其他账号下的数据库迁移至本账号下
通过云联网方式迁移自建数据库至腾讯云数据库
DTS 性能调优最佳实践
常见问题
数据迁移
数据同步
数据订阅 Kafka 版常见问题
数据订阅正则表达式
错误处理
常见错误处理
连通性测试不通过
校验项结果不通过或者出现警告
云联网接入配置源数据时无法选择子网
迁移慢或者进度卡住
数据同步有延时
数据订阅延迟过高
数据消费异常
API 文档
History
Introduction
API Category
Making API Requests
(NewDTS) Data Migration APIs
Data Sync APIs
Data Consistency Check APIs
(NewDTS) Data Subscription APIs
Data Types
Error Codes
DTS API 2018-03-30
相关协议
服务等级协议

Data Types

PDF
聚焦模式
字号
最后更新时间: 2025-10-24 14:49:45

ConsistencyParams

Sampling parameter for spot check

Used by actions: CreateMigrateJob, DescribeMigrateJobs, ModifyMigrateJob.

Name Type Required Description
SelectRowsPerTable Integer Yes Data content check parameter, which refers to the proportion of the rows selected for data comparison in all the rows of the table. Value: an integer between 1 and 100.
TablesSelectAll Integer Yes Data content check parameter, which refers to the proportion of the tables selected for data detection in all the tables. Value: an integer between 1 and 100.
TablesSelectCount Integer Yes Data quantity check parameter, which checks whether the numbers of rows are identical. It refers to the proportion of the tables selected for quantity check in all the tables. Value: an integer between 1 and 100.

DstInfo

Target instance information, which is correlated with the migration task type

Used by actions: CreateMigrateJob, DescribeMigrateJobs, ModifyMigrateJob.

Name Type Required Description
Region String Yes Target instance region, such as ap-guangzhou
InstanceId String No Target instance ID, such as cdb-jd92ijd8
Ip String No Target instance VIP, which has been disused and does not need to be entered
Port Integer No Target instance Vport, which has been disused and does not need to be entered
ReadOnly Integer No Only valid for MySQL currently. For instance-level migration, the value range is: 1 (read-only), 0 (read/write)
User String No Target database account
Password String No Target database password

ErrorInfo

Message and prompt for migration task error

Used by actions: DescribeMigrateJobs.

Name Type Description
ErrorLog String Specific error log, including error code and error message
HelpDoc String Help document URL corresponding to error

MigrateDetailInfo

Describes the specific migration process

Used by actions: DescribeMigrateJobs.

Name Type Description
StepAll Integer Total number of steps
StepNow Integer Current step
Progress String Overall progress, such as "10"
CurrentStepProgress String Progress of current step, such as "1"
MasterSlaveDistance Integer Master/slave lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL
SecondsBehindMaster Integer Master/slave lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL
StepInfo Array of MigrateStepDetailInfo Step information

MigrateJobInfo

Migration task details

Used by actions: DescribeMigrateJobs.

Name Type Description
JobId String Data migration task ID
JobName String Data migration task name
MigrateOption MigrateOption Migration task configuration options
SrcDatabaseType String Source instance database type: MySQL, Redis, MongoDB, PostgreSQL, MariaDB, Percona
SrcAccessType String Source instance access type. Value range: extranet (public network), cvm (CVM-created instance), dcg (Direct Connect-enabled instance), vpncloud (Tencent Cloud VPN-enabled instance), cdb (TencentDB instance), ccn (CCN instances)
SrcInfo SrcInfo Source instance information, which is correlated with the migration task type
DstDatabaseType String Target instance access type: MySQL, Redis, MongoDB, PostgreSQL, MariaDB, Percona
DstAccessType String Target instance access type, which currently only supports cdb (TencentDB instance)
DstInfo DstInfo Target instance information
DatabaseInfo String Information of the source table to be migrated. If the entire instance is to be migrated, this field should be []
CreateTime Timestamp Task creation/submission time
StartTime Timestamp Task start time
EndTime Timestamp Task end time
Status Integer Task status. Value range: 1 (Creating), 3 (Checking), 4 (CheckPass), 5 (CheckNotPass), 7 (Running), 8 (ReadyComplete), 9 (Success), 10 (Failed), 11 (Stopping), 12 (Completing)
Detail MigrateDetailInfo Task details
ErrorInfo Array of ErrorInfo Prompt message for task error, which is not null or empty when an error occurs with the task
Tags Array of TagItem Tag
Note: this field may return null, indicating that no valid values can be obtained.
SrcInfoMulti Array of SrcInfo Information of the source instance, a cluster edition instance whose access type is not cdb.
Note: This field may return null, indicating that no valid values can be obtained.

MigrateOption

Migration task configuration options

Used by actions: CreateMigrateJob, DescribeMigrateJobs, ModifyMigrateJob.

Name Type Required Description
RunMode Integer Yes Task operation mode. Value range: 1 (immediate execution), 2 (scheduled execution)
ExpectTime Timestamp No Expected execution time in the format of yyyy-mm-dd hh:mm:ss. If runMode=2, this field is required
MigrateType Integer No Data migration type. Value range: 1 (structural migration), 2 (full migration), 3 (full + incremental migration)
MigrateObject Integer No Migration subject. 1: entire instance; 2: specified table
ConsistencyType Integer No Parameter of spot data consistency check. 1: not configured; 2: full check; 3: spot check; 4: check inconsistent tables only; 5: no check
IsOverrideRoot Integer No Whether to overwrite the target database with the root account of the source database. Value range: 0 (no), 1 (yes). This value should be 0 for table or structural migration
ExternParams String No Additional parameters for different databases, which are described in JSON format.
The following parameters can be defined for Redis:
{
"ClientOutputBufferHardLimit":512, Hard capacity limit of slave buffer (MB)
"ClientOutputBufferSoftLimit":512, Soft capacity limit of slave buffer (MB)
"ClientOutputBufferPersistTime":60, Soft limit duration of slave buffer (s)
"ReplBacklogSize":512, Circular buffer capacity limit (MB)
"ReplTimeout":120, Replication timeout period (s)
}
The following parameters can be defined for MongoDB:
{
'SrcAuthDatabase':'admin',
'SrcAuthFlag': "1",
'SrcAuthMechanism':"SCRAM-SHA-1"
}
MySQL currently does not support configuring additional parameters.
ConsistencyParams ConsistencyParams No Only used for "spot data consistency check". It is required if ConsistencyType is spot check

MigrateStepDetailInfo

Information of steps in migration

Used by actions: DescribeMigrateJobs.

Name Type Description
StepNo Integer Step number
StepName String Step name
StepId String Step ID
Status Integer Step status. Value range: 0 (default), 1 (succeeded), 2 (failed), 3 (in progress), 4 (not started)
StartTime String Start time of current step in the format of yyyy-mm-dd hh:mm:ss. This field is meaningless if it does not exist or is empty
Note: this field may return null, indicating that no valid values can be obtained.

SrcInfo

Source instance information

Used by actions: CreateMigrateJob, DescribeMigrateJobs, ModifyMigrateJob.

Name Type Required Description
AccessKey String No Alibaba Cloud AccessKey, which is applicable if the source database is an Alibaba Cloud ApsaraDB for RDS 5.6 instance
Ip String No Instance IP address
Port Integer No Instance port
User String No Instance username
Password String No Instance password
RdsInstanceId String No Alibaba Cloud ApsaraDB for RDS instance ID, which is applicable if the source database is an Alibaba Cloud ApsaraDB for RDS 5.6/5.7 instance
CvmInstanceId String No Short CVM instance ID in the format of ins-olgl39y8. It is the same as the instance ID displayed on the CVM Console page. For CVM-based self-created instances, this field needs to be passed in
UniqDcgId String No Direct Connect gateway ID in the format of dcg-0rxtqqxb
VpcId String No VPC ID in the format of vpc-92jblxto
SubnetId String No VPC Subnet ID in the format of subnet-3paxmkdz
UniqVpnGwId String No VPN gateway ID in the format of vpngw-9ghexg7q
InstanceId String No Database instance ID in the format of cdb-powiqx8q
Region String No Region name, such as ap-guangzhou
Supplier String No For Alibaba Cloud ApsaraDB for RDS instances, enter "aliyun"; otherwise, enter "others"
CcnId String No CCN instance ID, such as ccn-afp6kltc
Note: This field may return null, indicating that no valid values can be obtained.
EngineVersion String No Database version. This parameter is valid only when the instance is an RDS instance. Value: 5.6 or 5.7. Default value: 5.6

SubsErr

Error message displayed when the subscription configuration was queried.

Used by actions: DescribeSubscribeConf.

Name Type Required Description
Message String No Error message.
Note: This field may return null, indicating that no valid values can be obtained.

SubscribeInfo

Subscription instance information

Used by actions: DescribeSubscribes.

Name Type Required Description
SubscribeId String No Data subscription instance ID
SubscribeName String No Data subscription instance name
ChannelId String No ID of channel bound to data subscription instance
Product String No Name of product bound to data subscription instance
InstanceId String No ID of database instance bound to data subscription instance
InstanceStatus String No Status of database instance bound to data subscription instance
SubsStatus String No Data subscription instance configuration status. Valid values: unconfigure, configuring, configured
ModifyTime String No Last modified time
CreateTime String No Creation time
IsolateTime String No Isolation time
ExpireTime String No Expiration time
OfflineTime String No Deactivation time
ConsumeStartTime String No Last modified consumption starting time point. If it has never been modified, this field is 0
Region String No Data subscription instance region
PayType Integer No Billing mode. 1: pay-as-you-go
Vip String No Data subscription instance VIP
Vport Integer No Data subscription instance Vport
UniqVpcId String No Unique ID of the VPC where the data subscription instance VIP resides
UniqSubnetId String No Unique ID of the subnet where the data subscription instance VIP resides
Status String No Data subscription instance status. Valid values: creating, normal, isolating, isolated, offlining, offline
SdkConsumedTime String No Timestamp of the last message confirmed by the SDK. If the SDK keeps consuming, this field can also be used as the current consumption time point of the SDK
Tags Array of TagItem No Tag
Note: this field may return null, indicating that no valid values can be obtained.
AutoRenewFlag Integer No Whether auto-renewal is enabled. 0: do not enable; 1: enable
Note: this field may return null, indicating that no valid values can be obtained.
SubscribeVersion String No Subscription instance edition. ·txdts: legacy data subscription; kafka: data subscription in Kafka edition
Note: this field may return null, indicating that no valid values can be obtained.

SubscribeObject

Data subscription object

Used by actions: ActivateSubscribe, DescribeSubscribeConf, ModifySubscribeObjects.

Name Type Required Description
ObjectsType Integer Yes Data subscription object type. 0: database, 1: database table
Note: this field may return null, indicating that no valid values can be obtained.
DatabaseName String Yes Name of subscribed database
Note: this field may return null, indicating that no valid values can be obtained.
TableNames Array of String No Array of table names in subscribed database
Note: this field may return null, indicating that no valid values can be obtained.

TagFilter

Tag filtering

Used by actions: DescribeMigrateJobs, DescribeSubscribes.

Name Type Required Description
TagKey String Yes Tag key value
TagValue Array of String No Tag value

TagItem

Tag

Used by actions: CreateMigrateJob, CreateSubscribe, DescribeMigrateJobs, DescribeSubscribeConf, DescribeSubscribes.

Name Type Required Description
TagKey String Yes Tag key value
TagValue String No Tag value
Note: this field may return null, indicating that no valid values can be obtained.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈