Modifies the default global configuration of synchronization solutions in a DataWorks workspace.
Operation description
DataWorks allows you to set a default global configuration only for DDL message processing rules in synchronization solutions. This configuration applies to all real-time synchronization tasks in the solutions. You can modify the processing rules of DDL messages based on your business requirements. For more information, see Synchronization solutions.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to obtain the ID. |
10000 |
| DestinationType |
string |
Yes |
The destination type of the synchronization solutions. This parameter is required. Valid values: analyticdb_for_mysql, odps, elasticsearch, holo, mysql, and polardb. |
odps |
| SourceType |
string |
No |
The source type of the synchronization solutions. Valid values: oracle, mysql, polardb, datahub, drds, and analyticdb_for_mysql. If you leave this parameter empty, the default global configuration applies to all source types. |
mysql |
| ProjectConfig |
string |
Yes |
The new default global configuration for synchronization solutions, specifying the processing rules for different DDL message types. The value must be in JSON format. Example: {"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}. Field description:
DataWorks processes DDL messages based on the following rules:
|
{"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 request ID, which is used to locate logs and troubleshoot issues. |
0000-ABCD-EFG |
| Data |
object |
The modification result. |
|
| Status |
string |
Whether the default global configuration was successfully modified. 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. | |
| 500 | InternalError.DI.Parameter | A DI internal error occurred. | |
| 403 | Forbidden.DI.NoPrivilege | No access. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.