All Products
Search
Document Center

DataWorks:DeleteDISyncTask

Last Updated:Oct 17, 2024

Deletes a synchronization task. You can call this operation to delete only a real-time synchronization task.

Operation description

If you want to delete a batch synchronization task, call the DeleteFile operation. For more information, see Delete a synchronization task.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongYes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace page to obtain the workspace ID.

You must configure this parameter to specify the DataWorks workspace to which the operation is applied.

10000
TaskTypestringYes

The type of the task. Set the value to DI_REALTIME, which indicates a real-time synchronization task.

DI_REALTIME
FileIdlongYes

The ID of the real-time synchronization task. You can call the ListFiles operation to query the ID.

100

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
RequestIdstring

The request ID. You can locate logs and troubleshoot issues based on the ID.

0bc1411515937635973****
Dataobject

The deletion result.

Statusstring

Indicates whether the synchronization task is deleted. Valid values:

  • success: The synchronization task is deleted.
  • fail: The synchronization task fails to be deleted. You can troubleshoot the issue based on the failure reason.
fail
Messagestring

The reason why the synchronization task fails to be deleted. If the synchronization task is deleted, the value null is returned for this parameter.

fileId:[100] is invalid.

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "RequestId": "0bc1411515937635973****",
  "Data": {
    "Status": "fail",
    "Message": "fileId:[100] is invalid."
  }
}

Error codes

HTTP status codeError codeError messageDescription
400Param.InvalidThe parameter is invalid.Param invalid
403Forbidden.AccessAccess is forbidden.-
500InternalError.SystemAn internal error occurred.InternalError

For a list of error codes, visit the Service error codes.