UpdateDIProjectConfig
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
Test
RAM authorization
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:
When DataWorks receives a DDL message of a specific type, the processing policy is as follows:
|
{"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 |
| 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 |
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.