DeployDISyncTask

Updated at:

Deploys a real-time synchronization task.

Operation description

When you call this operation, you must specify the region where the destination DataWorks workspace resides. RegionId is a host-level parameter used to select a region endpoint. For example, cn-hangzhou corresponds to the China (Hangzhou) region endpoint.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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 management page to obtain the ID.

This parameter specifies the DataWorks workspace for which the API operation is invoked.

10000

TaskType

string

Yes

The type of the Data Integration synchronization task associated with the destination data source. Valid values:

  • DI_REALTIME: real-time synchronization task in Data Integration

  • DI_SOLUTION: primary site synchronization task in Data Integration

DI_REALTIME

FileId

integer

Yes

  • If TaskType is set to DI_REALTIME, FileId specifies the file ID of the real-time synchronization task.

  • If TaskType is set to DI_SOLUTION, FileId specifies the node ID of the primary site synchronization task.

You can call the ListFiles operation to obtain the node ID.

100

Response elements

Element

Type

Description

Example

object

The returned result of the Data Integration synchronization task.

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

true

RequestId

string

The request ID. You can use the ID to locate logs and troubleshoot issues.

0bc14115159376359******

Data

object

The result of deploying the synchronization task.

Status

string

The status of the result for deploying the Data Integration synchronization task. Valid values:

  • success: The Data Integration synchronization task is deployed.

  • fail: The Data Integration synchronization task fails to be deployed.

success

Message

string

The cause of the failure to deploy the Data Integration synchronization task.

If the Data Integration synchronization task is deployed, this parameter is left empty.

submit and deploy fail.

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "0bc14115159376359******",
  "Data": {
    "Status": "success",
    "Message": "submit and deploy fail."
  }
}

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.