All Products
Search
Document Center

Data Transmission Service:Modify DTS synchronization tasks

Last Updated:Jun 20, 2025

Modifies the settings of a data synchronization task.

Note You can make appropriate pre-configurations in the console according to your needs, and then preview the corresponding OpenAPI parameter information to help you complete the request parameters. For more information, see Preview OpenAPI request parameters.

Debug

You can use OpenAPI Explorer to perform debugging. OpenAPI Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Name

Type

Required

Example

Description

Action String Yes ModifyDtsJob

The operation that you want to perform. Set the value to ModifyDtsJob.

RegionId String No cn-hangzhou

The region where the instance is located. For more information, see Supported regions.

DtsInstanceId String Yes dtsbi6e22ay243****

The data synchronization instance ID.

SynchronizationDirection String No Forward

The synchronization direction. Valid values:

  • Forward: Forward direction.
  • Reverse: Reverse direction.
Note
  • Default value: Forward.
  • This parameter is required only if the topology of the data synchronization instance is two-way synchronization.
ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe63****

The client token that is used to ensure the idempotency of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. ClientToken can contain only ASCII characters and cannot exceed 64 characters in length.

DbList Map No {"dtstest":{"name":"dtstest","all":true}}

The modified synchronization objects in the JSON format. For more information, see Objects for migration, synchronization, and subscription.

  • The original DbList will be overwritten by the newly entered DbList. Make sure that the new DbList contains all objects that need to be synchronized. Otherwise, synchronization objects may be lost. Modify with caution.
  • We recommend that you call DescribeDtsJobDetail in advance to query the current synchronization objects, and then enter the modified synchronization objects according to your business needs. For example, if the current objects are Table A and Table B and you need to add Table C, you must set this parameter to Table A, Table B, and Table C.
  • DbList supports a maximum of 1 MB of data.
  • If DbList contains filter conditions, the total length of DbList (including filter conditions) supports a maximum of 1 MB.
  • For distributed tasks (such as migration or synchronization tasks with PolarDB-X 1.0 as the source), DbList is split according to physical tables and generates multiple subtasks. The DbList of each subtask supports a maximum of 1 MB of data.
EtlOperatorColumnReference String No { "configKeyMap": [ { "moduleCode": "03", "etlOperatorColumnReference": "etlOperatorColumnReference", "etlOperatorSetting": "etlOperatorSetting" }, { "moduleCode": "07", "etlOperatorColumnReference": "etlOperatorColumnReference", "etlOperatorSetting": "etlOperatorSetting" } ], "amp.increment.replicator.compare.all.columns.enable": false, "srcNetType": "VPC", "etlOperatorColumnReference": { "MODIFY_TIME": [ { "datasynchron.test_timing_user_000": "user_create_date" }, { "datasynchron.test_timing_user_001": "user_create_date" }, { "datasynchron.test_timing_user_002": "user_create_date" }, { "datasynchron.test_timing_user_003": "user_create_date" } ] }, "destNetType": "VPC", "originalSrcDbInst": "sg-sit-db2-primary.mysql.polardb.rds.aliyuncs.com", "etlOperatorSetting": "adb_time_travel", "sjobUseJobTask": "1", "srcVpcNetMappingInst": "172.19.XXX.XXX:4261", "destVpcNetMappingInst": "172.19.XXX.XXX:4260", "useJobTask": "1" }

An operator that is related to the extract, transform, and load (ETL) feature and specific to T+1 business.

ModifyTypeEnum String No UPDATE_RESERVED

Indicates the method to modify the synchronization task. If this parameter is not specified, the synchronization objects are modified by default. If this parameter is set to UPDATE_RESERVED, the reserved parameters are modified.

Reserved String No {"definer": false,"syncArchitecture": "oneway","whitelist.dms.online.ddl.enable": false,"destSSL": "0","triggerMode": "manual","sqlparser.dms.original.ddl": true,"whitelist.ghost.online.ddl.enable": false,"privilegeMigration": false,"maxRetryTime": 43200,"srcSSL": "0","autoStartModulesAfterConfig": "none"}

The reserved parameter of DTS. The update method is to add rather than overwrite. The format is a MAP JSON string. You can pass this parameter to implement special requirements (such as whether to automatically start the precheck). The usage method is similar to the Reserve parameter. For more information, see Reserve parameter description.

FileOssUrl String No http://db-list-os-file.oss-cn-shanghai.aliyuncs.com/8e42_12185******43989_************

The OSS URL of the synchronization file.

FilterTableName String No testtable

The name of the table to be filtered.

StructureInitialization Boolean No true

Specifies whether to perform schema migration or schema synchronization. Valid values:

  • true: yes.
  • false: no.
DataInitialization Boolean No true

Specifies whether to perform full data migration or full data synchronization. Valid values:

  • true: yes.
  • false: no.
DataSynchronization Boolean No true

Specifies whether to perform incremental data migration or incremental data synchronization. Valid values:

  • false: no.
  • true: yes.
DtsJobId String No fpx1149rw7p***

The ID of the synchronization task. You can call DescribeDtsJobs to query the ID.

ZeroEtlJob Boolean No false

Specifies whether to query only zero-extract, transform, load (ETL) integration tasks. Valid values:

  • true: yes.
  • false: no.
ResourceGroupId String No rg-acfmzawhxxc****

The ID of the resource group to which the image copy belongs.

Return data

Name

Type

Example

Description

Status String 200

The status code.

RequestId String 1D6ECADF-C5E9-4C96-8811-77602B31****

The request ID.

DtsJobId String bi6e22a****

The DTS task ID.

ErrCode String InternalError

The error code returned if the request fails.

Success Boolean true

Indicates whether the request is successful. Valid values:

ErrMessage Boolean true

The error message returned if the request failed.

Note The data type of this parameter should be String, and the actual example value is The request processing has failed due to some unknown error.

Examples

Request example

http(s)://dts.aliyuncs.com/?Action=ModifyDtsJob
&DtsInstanceId=dtsbi6e22ay243****
&DbList={"dtstest":{"name":"dtstest","all":true}}
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDtsJobResponse>
    <DtsJobId>bi6e22a****</DtsJobId>
    <RequestId>1D6ECADF-C5E9-4C96-8811-77602B31****</RequestId>
    <Success>true</Success>
</ModifyDtsJobResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "DtsJobId" : "bi6e22a****",
  "RequestId" : "1D6ECADF-C5E9-4C96-8811-77602B31****",
  "Success" : true
}

Error codes

HttpCode

Error code

Error message

Description

403 OperationDenied.JobStatusModifying jobs state is modifying, please wait sync subtask ends The task is in the process of modifying synchronization objects (the previous modification operation has not been completed). Please wait for this status to end
403 CheckStatus.InvalidInitStatus Task has not been configured, please configure job first The task has not been configured. Please configure the task before modifying it
403 DTS.Msg.OperationDenied.JobStatusModifying jobs state is modifying, please wait sync subtask ends The task is in the process of modifying synchronization objects (the previous modification operation has not been completed). Please wait for this status to end
403 DTS.Msg.CheckStatus.InvalidInitStatus Task has not been configured, please configure job first The task has not been configured. Please configure the task before modifying it
403 InvalidSecurityToken.Expired Specified SecurityToken is expired. The signature expired. Use a new signature.
400 Throttling.User Request was denied due to user flow control. The number of requests reached the limit, and the request was rejected. Try again later.
500 ServiceUnavailable The request has failed due to a temporary failure of the server. The response of the server timed out or the server was unavailable. Try again. If the error persists, contact technical support.

Visit the Error Center for more error codes.