Starts a data synchronization task.
- Before you call this operation, make sure that you fully understand the billing methods and pricing of Data Transmission Service (DTS).
- When you call this operation, the data synchronization task must be in the NotStarted, Failed, or Suspending state. If you call this operation to start a task that is in the NotStarted state, the task will be prechecked.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | StartSynchronizationJob |
The operation that you want to perform. Set the value to StartSynchronizationJob. |
SynchronizationJobId | String | Yes | dtsf19100l2186**** |
The ID of the data synchronization instance. You can call the DescribeSynchronizationJobs operation to query the instance ID. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the data synchronization instance resides. For more information, see List of supported regions. |
SynchronizationDirection | String | No | Forward |
The synchronization direction. Valid values:
Note
|
AccountId | String | No | 12323344**** |
The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter will be removed in the future. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrCode | String | InternalError |
The error code returned if the call failed. |
ErrMessage | String | The request processing has failed due to some unknown error. |
The error message returned if the call failed. |
RequestId | String | FDC111B1-ACBF-457D-9656-247FDEE9**** |
The ID of the request. |
Success | String | true |
Indicates whether the call was successful. |
Examples
Sample requests
http(s)://dts.aliyuncs.com/?Action=StartSynchronizationJob
&SynchronizationJobId=dtsf19100l2186****
&<Common request parameters>
Sample success responses
XML
format
<StartSynchronizationJobresponse>
<RequestId>FDC111B1-ACBF-457D-9656-247FDEE9****</RequestId>
<Success>true</Success>
</StartSynchronizationJobresponse>
JSON
format
{
"RequestId": "FDC111B1-ACBF-457D-9656-247FDEE9****",
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.