Updates a synchronization task.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DIJobId | long | Yes | The ID of the synchronization task. | 11588 |
Description | string | No | The description of the synchronization task. | |
TableMappings | array<object> | No | The list of mappings between rules used to select synchronization objects in the source and transformation rules applied to the selected synchronization objects. Each entry in the list displays a mapping between a rule used to select synchronization objects and a transformation rule applied to the selected synchronization objects. | |
object | No | The mapping between a rule used to select synchronization objects in the source and a transformation rule applied to the selected synchronization objects. | ||
SourceObjectSelectionRules | array<object> | No | The list of rules used to select synchronization objects in the source. The objects can be databases or tables. | |
object | No | The rule used to select synchronization objects in the source. The objects can be databases or tables. | ||
Action | string | No | The operation that is performed to select objects. Valid values: Include and Exclude. | Include |
Expression | string | No | The expression. | mysql_table_1 |
ExpressionType | string | No | The expression type. Valid values: Exact and Regex. | Exact |
ObjectType | string | No | The object type. Valid values:
| Table |
TransformationRules | array<object> | No | The list of transformation rules that you want to apply to the synchronization objects selected from the source. Each entry in the list defines a transformation rule. | |
object | No | The transformation rule that you want to apply to the synchronization objects selected from the source. | ||
RuleName | string | No | The name of the rule. If the values of the RuleActionType parameter and the RuleTargetType parameter are the same for multiple transformation rules, you must make sure that the transformation rule names are unique. | rename_rule_1 |
RuleActionType | string | No | The action type. Valid values:
| Rename |
RuleTargetType | string | No | The type of the object on which you want to perform the action. Valid values:
| Table |
JobSettings | object | No | The settings for the dimension of the synchronization task. The settings include processing policies for DDL messages, policies for data type mappings between source fields and destination fields, and runtime parameters of the synchronization task. | |
ChannelSettings | string | No | The channel control settings for the synchronization task. The value of this parameter must be a JSON string. | {"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""} |
ColumnDataTypeSettings | array<object> | No | The data type mappings between source fields and destination fields. | |
object | No | The data type mapping between a source field and a destination field. | ||
DestinationDataType | string | No | The data type of the destination field. | text |
SourceDataType | string | No | The data type of the source field. | bigint |
CycleScheduleSettings | object | No | The settings for periodic scheduling. | |
ScheduleParameters | string | No | The scheduling parameters. | bizdate=$bizdate |
DdlHandlingSettings | array<object> | No | The processing settings for DDL messages. | |
object | No | The processing setting for a specific type of DDL message. | ||
Action | string | No | The processing policy. Valid values:
| Critical |
Type | string | No | The type of the DDL operation. Valid values:
| AddColumn |
RuntimeSettings | array<object> | No | The runtime settings. | |
object | No | The runtime setting. | ||
Name | string | No | The name of the configuration item. Valid values:
| runtime.offline.concurrent |
Value | string | No | The value of the configuration item. | 1 |
ResourceSettings | object | No | The resource settings. | |
OfflineResourceSettings | object | No | The resource used for batch synchronization. | |
RequestedCu | long | No | The number of compute units (CUs) in the resource group for Data Integration that are used for batch synchronization. | 2.0 |
ResourceGroupIdentifier | string | No | The identifier of the resource group for Data Integration used for batch synchronization. | S_res_group_111_222 |
RealtimeResourceSettings | object | No | The resource used for real-time synchronization. | |
RequestedCu | long | No | The number of CUs in the resource group for Data Integration that are used for real-time synchronization. | 2.0 |
ResourceGroupIdentifier | string | No | The identifier of the resource group for Data Integration used for real-time synchronization. | S_res_group_111_222 |
ScheduleResourceSettings | object | No | The resource used for scheduling. | |
RequestedCu | long | No | The number of CUs in the resource group for scheduling that are used for batch synchronization. | 2.0 |
ResourceGroupIdentifier | string | No | The identifier of the resource group for scheduling used for batch synchronization. | S_res_group_235454102432001_1721021993437 |
TransformationRules | array<object> | No | The list of transformation rules for objects involved in the synchronization task. Each entry in the list defines a transformation rule. | |
object | No | The transformation rule for objects involved in the synchronization task. | ||
RuleActionType | string | No | The action type. Valid values:
| Rename |
RuleExpression | string | No | The expression of the rule. The expression must be a JSON string. Example of a renaming rule: {"expression":"${srcDatasourceName}_${srcDatabaseName}_0922","variables":[{"variableName":"srcDatabaseName","variableRules":[{"from":"fromdb","to":"todb"}]}]}. expression: the expression of the renaming rule. The expression may contain the following variables: ${srcDatasourceName}, ${srcDatabaseName}, and ${srcTableName}. ${srcDatasourceName} indicates the name of the source. ${srcDatabaseName} indicates the name of a source database. ${srcTableName} indicates the name of a source table. variables: the generation rule for a variable used in the expression of the renaming rule. The default value of the specified variable is the original value of the object indicated by the variable. You can define a group of string replacement rules to change the original values based on your business requirements. variableName: the name of the variable. The variable name cannot be enclosed in ${}. variableRules: the string replacement rules for variables. The system runs the string replacement rules in sequence. from specifies the original string. to specifies the new string. Example of a rule used to add a specific field to the destination and assign a value to the field: {"columns":[{"columnName":"my_add_column","columnValueType":"Constant","columnValue":"123"}]}. If you do not configure such a rule, no fields are added to the destination and no values are assigned by default. columnName: the name of the field that you want to add. columnValueType: the value type of the field. Valid values: Constant and Variable. columnValue: the value of the field. If you set the valueType parameter to Constant, set the columnValue parameter to a custom constant of the STRING type. If you set the valueType parameter to Variable, set the columnValue to a built-in variable. The following built-in variables are supported: EXECUTE_TIME (LONG data type), DB_NAME_SRC (STRING data type), DATASOURCE_NAME_SRC (STRING data type), TABLE_NAME_SRC (STRING data type), DB_NAME_DEST (STRING data type), DATASOURCE_NAME_DEST (STRING data type), TABLE_NAME_DEST (STRING data type), and DB_NAME_SRC_TRANSED (STRING data type). EXECUTE_TIME specifies the execution time. DB_NAME_SRC indicates the name of a source database. DATASOURCE_NAME_SRC specifies the name of the source. TABLE_NAME_SRC specifies the name of a source table. DB_NAME_DEST specifies the name of a destination database. DATASOURCE_NAME_DEST specifies the name of the destination. TABLE_NAME_DEST specifies the name of a destination table. DB_NAME_SRC_TRANSED specifies the database name obtained after a transformation. Example of a rule used to specify primary key fields for a destination table: {"columns":["ukcolumn1","ukcolumn2"]}. If you do not configure such a rule, the primary key fields in the mapped source table are used for the destination table by default. If the destination table is an existing table, Data Integration does not modify the schema of the destination table. If the specified primary key fields do not exist in the destination table, an error is reported when the synchronization task starts to run. If the destination table is automatically created by the system, Data Integration automatically creates the schema of the destination table. The schema contains the primary key fields that you specify. If the specified primary key fields do not exist in the destination table, an error is reported when the synchronization task starts to run. Example of a rule used to process DML messages: {"dmlPolicies":[{"dmlType":"Delete","dmlAction":"Filter","filterCondition":"id > 1"}]}. If you do not configure such a rule, the default processing policy for messages generated for insert, update, and delete operations is Normal. dmlType: the DML operation. Valid values: Insert, Update, and Delete. dmlAction: the processing policy for DML messages. Valid values: Normal, Ignore, Filter, and LogicalDelete. Filter indicates conditional processing. You can set the dmlAction parameter to Filter only when the dmlType parameter is set to Update or Delete. filterCondition: the condition used to filter DML messages. This parameter is required only when the dmlAction parameter is set to Filter. | {"expression":"${srcDatasoureName}_${srcDatabaseName}"} |
RuleName | string | No | The name of the rule. If the values of the RuleActionType parameter and the RuleTargetType parameter are the same for multiple transformation rules, you must make sure that the transformation rule names are unique. | rename_rule_1 |
RuleTargetType | string | No | The type of the object on which you want to perform the action. Valid values:
| Table |
Response parameters
Examples
Sample success responses
JSON
format
{
"Success": true,
"RequestId": "AAC30B35-820D-5F3E-A42C-E96BB6379325"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-14 | The request parameters of the API has changed | View Change Details |