UpdateDIProjectConfig

Updated at:

Modifies the default global configurations for Data Integration synchronization solution tasks in the current workspace.

Operation description

Currently, DataWorks only supports configuring the default global settings for the DDL message processing policy of real-time synchronization tasks in synchronization solution tasks. If your synchronization solution task includes real-time synchronization tasks, the global configurations here are read as the default configurations when you configure the DDL message processing rules. You can also modify the default DDL message processing rules of the target synchronization node to the required configurations based on your actual business needs. For more details about configuring Data Integration synchronization solution tasks, see Configure a synchronization solution task.

Prerequisites: Before you invoke this operation, you must activate DataWorks Enterprise Edition or Ultimate Edition. Otherwise, the operation returns a 403 Forbidden.Access error.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the workspace ID.

10000

DestinationType

string

Yes

The destination data source of the Data Integration synchronization solution task. This parameter cannot be empty. When you invoke the UpdateDIProjectConfig operation to modify the global configurations of the synchronization solutions, only the following destination data sources are supported: analyticdb_for_mysql, odps, elasticsearch, holo, mysql, and polardb.

odps

SourceType

string

Yes

The source data source of the Data Integration synchronization solution task. When you invoke the UpdateDIProjectConfig operation to modify the global configurations of the synchronization solution task, only the following source data sources are supported: oracle, mysql, polardb, datahub, drds, and analyticdb_for_mysql. If you do not specify a source data source, the default global configurations take effect for all source data sources.

mysql

ProjectConfig

string

Yes

The modified default global configurations for the Data Integration synchronization solution task, which specify the default processing policy for different DDL message types. Use the JSON format. Example: {"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}

DDL message types:

  • RENAMECOLUMN: Renames a column.

  • DROPTABLE: Deletes a table.

  • CREATETABLE: Creates a table.

  • MODIFYCOLUMN: Modifies a column type.

  • TRUNCATETABLE: Truncates a table.

  • DROPCOLUMN: Deletes a column.

  • ADDCOLUMN: Adds a column.

  • RENAMETABLE: Renames a table.

When DataWorks receives a DDL message of a specific type, the processing policy is as follows:

  • WARNING: Discards the message directly and records alerting information in the real-time synchronization log, indicating that the message was discarded because it failed to execute.

  • IGNORE: Discards the message directly and does not send it to the destination data source.

  • CRITICAL: Sets the real-time synchronization task to the error state and stops the node.

  • NORMAL: Forwards the message to the destination data source for processing. Because different destination data sources may have a different DDL message processing policy, DataWorks only forwards the message.

{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}

Response elements

Element

Type

Description

Example

object

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request is successful.

  • false: The request failed.

true

RequestId

string

The unique ID of the request. You can use the ID to locate logs and troubleshoot issues when an error occurs.

0000-ABCD-EFG

Data

object

The return result of modifying the default global configurations for Data Integration synchronization solution tasks in the target workspace.

Status

string

The status is whether the default global configurations of the Data Integration synchronization solution task are modified successfully. Valid values:

  • success: The configurations are modified successfully.

  • fail: The configurations failed to be modified.

success

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "0000-ABCD-EFG\t",
  "Data": {
    "Status": "success"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Invalid.DI.Parameter The parameter is invalid. The parameter is invalid.
500 InternalError.DI.Parameter A DI internal error occurred. A Data Integration internal business error occurred.
403 Forbidden.DI.NoPrivilege No access. Access denied.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.