POST /?Action=CreateTransmissionTask&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host:dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****
{
"TaskName": "zaizaitest****1",
"TaskType": "DataMigration",
"SrcConfig": {
"EndpointType": "Public_MySQL",
"PublicMySQLSettings": {
"Host": "192.168.***.***",
"Port": 4,
"Username": "test****",
"Password": "Admin@****",
"SSLSettings": {
"EnableSSL": "true",
"Cert": "-----BEGIN CERTIFICATE----- ...... -----END CERTIFICATE-----"
},
"RegionSettings": {
"Region": "cn-shanghai"
}
}
},
"DestConfig": {
"EndpointType": "Volc_MySQL",
"VolcMySQLSettings": {
"DBInstanceId": "mysql-7cd1dc4ab511",
"DBInstanceName": "",
"Password": "Admin@****",
"RegionSettings": {
"Region": "cn-guangzhou"
},
"Username": "test****"
}
},
"TrafficSpec": "Compact",
"ProjectName": "default",
"SolutionSettings": {
"MySQL2MySQLSettings": {
"AccountTransmissionSettings": {
"EnableAccount": true
},
"ETLSettings": {
"Script": ""
},
"ErrorBehaviorSettings": {
"MaxRetrySeconds": 7200
},
"FullTransmissionSettings": {
"EnableFull": true,
"Snapshot": false
},
"IncrTransmissionSettings": {
"EnableIncr": true,
"Statements": [
"StmtDDLAll",
"StmtDMLDelete",
"StmtDMLUpdate",
"StmtDMLInsert"
]
},
"MetaTransmissionSettings": {
"EnableMeta": true
},
"ObjectMappings": [
{
"DestObjName": "huahua",
"MappingList": [
{
"DestObjName": "*",
"ObjectType": "Table",
"SrcObjName": "*"
}
],
"ObjectType": "Database",
"SrcObjName": "huahua"
}
],
"PolicyForPrimaryKeyConflict": "Override",
"AccountMapping": {
"Account": "test****",
"ResetPassword": "true",
"Password": "*Test****"
}
},
"SolutionType": "MySQL2MySQL"
},
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"ChargeConfig": {
"ChargeType": "PostPaid"
}
}
POST /?Action=CreateTransmissionTask&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host:dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****
{
"TaskName": "rudonxxxxx-1",
"TaskType": "DataMigration",
"TrafficSpec": "Compact",
"ProjectName": "default",
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"SrcConfig": {
"EndpointType":"Public_Redis",
"PublicRedisSettings":{
"Host": "192.168.***.***",
"Port": 4,
"Username": "test****",
"Password": "test****",
"DBName": "test****",
"RegionSettings": {
"Region": "cn-beijing"
}
},
},
"DestConfig": {
"EndpointType": "Volc_Redis",
"VolcRedisSettings": {
"RegionSettings": {
"Region": "cn-beijing"
},
"DBInstanceId": "redis-cnlfe66ipof9y86qz",
"Username": "default",
"Password": "ASDFasdf@2020"
}
},
"SolutionSettings": {
"SolutionType": "Redis2Redis",
"Redis2RedisSettings": {
"ObjectMappings": [
{
"ObjectType": "Database",
"SrcObjName": "0",
"DestObjName": "0"
},
{
"ObjectType": "Database",
"SrcObjName": "1",
"DestObjName": "1"
},
{
"ObjectType": "Database",
"SrcObjName": "2",
"DestObjName": "2"
}
],
"ErrorBehaviorSettings": {
"MaxRetrySeconds": 7200
},
"FullTransmissionSettings": {
"EnableFull": true
},
"IncrTransmissionSettings": {
"EnableIncr": false
}
}
} ,
"ChargeConfig":{
"ChargeType":"PostPaid"
}
}
POST /?Action=CreateTransmissionTask&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host:dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****
{
"TaskName": "rudonxxxxx-1",
"TaskType": "DataMigration",
"TrafficSpec": "Compact",
"ProjectName": "default",
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"SrcConfig": {
"EndpointType": "Public_PostgreSQL",
"PublicPostgreSQLSettings": {
"Host": "192.168.***.***",
"Port": 4,
"Username": "test****",
"Password": "Admin@****",
"DBName": "test****",
"RegionSettings": {
"Region": "cn-beijing"
}
}
},
"DestConfig": {
"EndpointType": "Volc_PostgreSQL",
"VolcPostgreSQLSettings": {
"DBInstanceId": "postgres-h441603c68aaa****",
"Username": "test****",
"Password": "Admin@****",
"DBName": "test****",
"RegionSettings": {
"Region": "cn-beijing"
}
},
},
"SolutionSettings": {
"SolutionType": "PG2PG",
"PG2PGSettings": {
"ObjectMappings": [
{
"ObjectType": "Database",
"SrcObjName": "0",
"DestObjName": "0"
},
{
"ObjectType": "Table",
"SrcObjName": "1",
"DestObjName": "1"
},
{
"ObjectType": "View",
"SrcObjName": "2",
"DestObjName": "2"
},
{
"ObjectType": "PostSequence",
"SrcObjName": "3",
"DestObjName": "3"
}
],
"MetaTransmissionSettings": {
"EnableMeta": "true"
},
"FullTransmissionSettings": {
"EnableMeta": "true"
},
"IncrTransmissionSettings": {
"EnableMeta": "true"
},
"ErrorBehaviorSettings": {
"MaxRetrySeconds": 7200
}
} ,
"ChargeConfig":{
"ChargeType":"PostPaid"
}
}
POST /?Action=CreateTransmissionTask&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host:dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****
{
"TaskName": "rudonxxxxx-1",
"TaskType": "DataMigration",
"TrafficSpec": "Compact",
"ProjectName": "default",
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"SrcConfig": {
"EndpointType": "Public_Mongo",
"PublicMongoSettings": {
"Endpoints": "192.168.***.***:4",
"Username": "test****",
"Password": "Admin@****",
"MongoAuthSourceDB": "ReplicaSet",
"DeployType": "Standalone",
"RegionSettings": {
"Region": "cn-beijing"
}
}
},
"DestConfig": {
"EndpointType": "Volc_Mongo",
"VolcMongoSettings": {
"DBInstanceId": "mongo-replica-e405f8e2****",
"Username": "test****",
"Password": "Admin@****",
"MongoAuthSourceDB": "admin",
"DeployType": "ShardedCluster",
"RegionSettings": {
"Region": "cn-beijing"
}
},
},
"SolutionSettings": {
"SolutionType": "Mongo2Mongo",
"Mongo2MongoSettings": {
"ObjectMappings": [
{
"ObjectType": "Table",
"SrcObjName": "0",
"DestObjName": "0"
},
{
"ObjectType": "Aggregate",
"SrcObjName": "1",
"DestObjName": "1"
}
],
"MetaTransmissionSettings": {
"EnableMeta": "true"
},
"FullTransmissionSettings": {
"EnableMeta": "true"
},
"IncrTransmissionSettings": {
"EnableMeta": "true"
},
"ErrorBehaviorSettings": {
"MaxRetrySeconds": 7200
}
} ,
"ChargeConfig":{
"ChargeType":"PostPaid"
}
}