All Products
Search
Document Center

DataWorks:QueryDISyncTaskConfigProcessResult

Last Updated:Mar 30, 2026

Queries the result of an asynchronous task for generating synchronization task configurations.

Operation description

DataWorks allows you to directly call the CreateDISyncTask operation to create or the UpdateDISyncTask operation to update batch synchronization tasks in Data Integration. To create or update a real-time synchronization task, you must first call the GenerateDISyncTaskConfigForCreating, GenerateDISyncTaskConfigForUpdating, and QueryDISyncTaskConfigProcessResult operations to asynchronously generate the required parameters, and then pass the parameters to the CreateDISyncTask or UpdateDISyncTask operation. Only asynchronous creation or update is supported for real-time synchronization tasks in Data Integration.

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 DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to obtain the ID.

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

10000

TaskType

string

Yes

The type of the object that you want to create or update in Data Integration in asynchronous mode. Valid values:

  • DI_REALTIME: real-time synchronization task

  • DI_SOLUTION: synchronization solution DataWorks allows you to create or update real-time synchronization tasks and synchronization solutions in Data Integration only in asynchronous mode.

Valid values:

  • DI_OFFLINE

  • DI_REALTIME

  • DI_SOLUTION

DI_REALTIME

AsyncProcessId

integer

Yes

The asynchronous thread ID. You can call the GenerateDISyncTaskConfigForCreating or GenerateDISyncTaskConfigForUpdating operation to obtain the ID.

  • The GenerateDISyncTaskConfigForCreating operation is used to generate the ID of the asynchronous thread that is used to create a real-time synchronization task in Data Integration.

  • The GenerateDISyncTaskConfigForUpdating operation is used to generate the ID of the asynchronous thread that is used to update a real-time synchronization task in Data Integration.

10

Response elements

Element

Type

Description

Example

object

The returned results.

Success

boolean

Indicates whether the request was successful. Valid values:

  • true

  • false

true

RequestId

string

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

0bc1411515937635973****

Data

object

The information returned for the parameters that are asynchronously generated and used to create or update a real-time synchronization task in Data Integration.

Status

string

Indicates whether the parameters are obtained. Valid values:

  • success: The parameters are obtained.

  • fail: The parameters fail to be obtained. You can view the reason for the failure and troubleshoot the issue based on the reason.

success

Message

string

The reason why the parameters fail to be obtained. If the parameters are obtained, the value null is returned.

fileId:[100] is invalid.

TaskContent

string

The parameters that are obtained. The parameters are used as the request parameters of the CreateDISyncTask or UpdateDISyncTask operation to create or update a real-time synchronization task in Data Integration.

{"extend":{"mode":"migration_holo","resourceGroup":"280749","name":"h"},"type":"job","steps":[{"stepType":"mysql","parameter":{"connection":[{"datasourceType":"mysql","datasource":"mm","selectedTables":[{"schema":[{"tableInfos":[{"enable":true,"table":"m_v1","tableName":"m_v1"}]}],"dbName":"m"}]}]},"name":"reader","category":"reader"},{"stepType":"holo","parameter":{"datasource":"h","tableMappingRule":{"datasource":[{"tableRule":[{"srcTable":"m_v1","mergeIntoCycleType":"DEFAULT","hourDeltaEnable":false,"dstTable":"m.m_v1","dayDeltaEnable":false,"primaryKeyInfo":{"column":["id"],"type":"pk"},"dstCreateTableInfo":{"indexType":"m_v1","dataColumn":[{"columnSize":0,"name":"id","index":0,"comment":"","newDigit":0,"type":"int8","digit":0,"primaryKey":true}],"schemaName":"m","tableName":"m_v1"},"srcDbName":"m"}],"srcDatasourceName":"mm"}],"totalTableMapping":1},"writeMode":"replay"},"name":"writer","category":"writer"}],"version":"2.0","order":{"hops":[{"from":"reader","to":"writer"}]}}

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "0bc1411515937635973****",
  "Data": {
    "Status": "success",
    "Message": "fileId:[100] is invalid.",
    "TaskContent": "{\"extend\":{\"mode\":\"migration_holo\",\"resourceGroup\":\"280749\",\"name\":\"h\"},\"type\":\"job\",\"steps\":[{\"stepType\":\"mysql\",\"parameter\":{\"connection\":[{\"datasourceType\":\"mysql\",\"datasource\":\"mm\",\"selectedTables\":[{\"schema\":[{\"tableInfos\":[{\"enable\":true,\"table\":\"m_v1\",\"tableName\":\"m_v1\"}]}],\"dbName\":\"m\"}]}]},\"name\":\"reader\",\"category\":\"reader\"},{\"stepType\":\"holo\",\"parameter\":{\"datasource\":\"h\",\"tableMappingRule\":{\"datasource\":[{\"tableRule\":[{\"srcTable\":\"m_v1\",\"mergeIntoCycleType\":\"DEFAULT\",\"hourDeltaEnable\":false,\"dstTable\":\"m.m_v1\",\"dayDeltaEnable\":false,\"primaryKeyInfo\":{\"column\":[\"id\"],\"type\":\"pk\"},\"dstCreateTableInfo\":{\"indexType\":\"m_v1\",\"dataColumn\":[{\"columnSize\":0,\"name\":\"id\",\"index\":0,\"comment\":\"\",\"newDigit\":0,\"type\":\"int8\",\"digit\":0,\"primaryKey\":true}],\"schemaName\":\"m\",\"tableName\":\"m_v1\"},\"srcDbName\":\"m\"}],\"srcDatasourceName\":\"mm\"}],\"totalTableMapping\":1},\"writeMode\":\"replay\"},\"name\":\"writer\",\"category\":\"writer\"}],\"version\":\"2.0\",\"order\":{\"hops\":[{\"from\":\"reader\",\"to\":\"writer\"}]}}"
  }
}

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.