DeployDISyncTask
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
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 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 |
| FileId |
integer |
Yes |
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 |
| 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 |
| 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.