StartDISyncInstance
Invokes the StartDISyncInstance operation to start real-time synchronization tasks and solution synchronization tasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can obtain the ID by calling the ListProjects operation or by logging on to the DataWorks console and navigating to the workspace configuration page. This parameter specifies the DataWorks workspace used for the current API call. |
10000 |
| TaskType |
string |
Yes |
The type of the Data Integration synchronization task to start. Valid values:
|
DI_REALTIME |
| FileId |
integer |
Yes |
|
100 |
| StartParam |
string |
No |
|
{"failoverLimit":{"count":10,"interval":30},"errorLimit":{"record":0},"ddlMarkMap":{"RENAMECOLUMN":"WARNING","DROPTABLE":"WARNING","CREATETABLE":"IGNORE","MODIFYCOLUMN":"WARNING","TRUNCATETABLE":"NORMAL","DROPCOLUMN":"IGNORE","ADDCOLUMN":"NORMAL","RENAMETABLE":"CRITICAL"}} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
0bc1411515937635973**** |
| Data |
object |
The result of starting the synchronization task. |
|
| Status |
string |
The status of the result for starting the synchronization task. Valid values:
|
success |
| Message |
string |
The description of the cause of the failure to start the Data Integration synchronization task. If the Data Integration synchronization task is started successfully, this parameter is empty. |
fileId:[100] is invalid. |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "0bc1411515937635973****",
"Data": {
"Status": "success",
"Message": "fileId:[100] is invalid."
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Param.Invalid | The parameter is invalid. | Param invalid |
| 500 | InternalError.System | An internal error occurred. | InternalError |
| 403 | Forbidden.Access | Access is forbidden. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.