DeleteDISyncTask
Deletes a Data Integration synchronization task. Currently, this operation only supports deleting real-time data synchronization tasks.
Operation description
To delete an offline data synchronization task, use the DeleteFile operation. For more information, see Delete a synchronization task.
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 configuration page to obtain the workspace ID. This parameter specifies the DataWorks workspace in which the API operation is performed. |
10000 |
| TaskType |
string |
Yes |
The type of the Data Integration synchronization task. Currently, only DI_REALTIME is supported, which indicates a real-time data synchronization task. |
DI_REALTIME |
| FileId |
integer |
Yes |
The ID of the real-time data synchronization task. You can call the ListFiles operation to obtain the task ID. |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| Success |
boolean |
Indicates whether the request is 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 deleting the Data Integration synchronization task. |
|
| Status |
string |
The status of the deletion result. Valid values:
|
fail |
| Message |
string |
The cause of the deletion failure. If the Data Integration synchronization task is successfully deleted, this parameter is left empty. |
fileId:[100] is invalid. |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "0bc1411515937635973****",
"Data": {
"Status": "fail",
"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.