Mengubah konfigurasi global default solusi sinkronisasi di ruang kerja DataWorks.
Deskripsi operasi
DataWorks allows you to specify a default global configuration only for the processing rules of DDL messages in synchronization solutions. After you configure the processing rules of DDL messages in synchronization solutions, the configuration is used as the default global configuration and 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 about how to configure a synchronization solution, see Synchronization solutions.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
ID ruang kerja DataWorks. Anda dapat masuk ke Konsol DataWorks dan membuka halaman Workspace untuk mendapatkan ID ruang kerja. |
10000 |
| DestinationType |
string |
Yes |
Tipe tujuan solusi sinkronisasi. Parameter ini tidak boleh kosong. Nilai valid: analyticdb_for_mysql, odps, elasticsearch, holo, mysql, dan polardb. |
odps |
| SourceType |
string |
No |
Tipe sumber solusi sinkronisasi. Nilai valid: oracle, mysql, polardb, datahub, drds, dan analyticdb_for_mysql. Jika Anda tidak mengonfigurasi parameter ini, DataWorks menerapkan konfigurasi global default ke semua sumber. |
mysql |
| ProjectConfig |
string |
Yes |
Konfigurasi global default baru solusi sinkronisasi. Nilai ini menunjukkan aturan pemrosesan berbagai tipe Paket DDL. Nilai harus dalam format JSON. Contoh: {"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"}. Deskripsi bidang:
DataWorks memproses Paket DDL tipe tertentu berdasarkan aturan berikut:
|
{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"WARNING","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"WARNING","DROPCOLUMN":"WARNING","ADDCOLUMN":"WARNING","RENAMETABLE":"WARNING"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. You can locate logs and troubleshoot issues based on the ID. |
0000-ABCD-EFG |
| Data |
object |
The information about the modification. |
|
| Status |
string |
Indicates whether the default global configuration of synchronization solutions is modified. Valid values:
|
success |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"RequestId": "0000-ABCD-EFG\t",
"Data": {
"Status": "success"
}
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.