Configuring Auto-Reconnect for Migration Tasks¶
Function¶
This API is used to configure auto-reconnect for migration tasks.
URI¶
PUT /v2/{project_id}/migration-task/{task_id}
Parameter  | Mandatory  | Type  | Description  | 
|---|---|---|---|
project_id  | Yes  | String  | Project ID. For details, see Obtaining a Project ID.  | 
task_id  | Yes  | String  | ID of the data migration task.  | 
Request Parameters¶
Parameter  | Mandatory  | Type  | Description  | 
|---|---|---|---|
resume_mode  | No  | String  | Reconnection mode of the migration tasks. 
  | 
Response Parameters¶
Status code: 400
Parameter  | Type  | Description  | 
|---|---|---|
error_msg  | String  | Error message.  | 
error_code  | String  | Error code.  | 
error_ext_msg  | String  | Extended error information. This parameter is not used currently and is set to null.  | 
Status code: 401
Parameter  | Type  | Description  | 
|---|---|---|
error_msg  | String  | Error message.  | 
error_code  | String  | Error code.  | 
error_ext_msg  | String  | Extended error information. This parameter is not used currently and is set to null.  | 
Status code: 403
Parameter  | Type  | Description  | 
|---|---|---|
error_msg  | String  | Error message.  | 
error_code  | String  | Error code.  | 
error_ext_msg  | String  | Extended error information. This parameter is not used currently and is set to null.  | 
Status code: 404
Parameter  | Type  | Description  | 
|---|---|---|
error_msg  | String  | Error message.  | 
error_code  | String  | Error code.  | 
error_ext_msg  | String  | Extended error information. This parameter is not used currently and is set to null.  | 
Status code: 500
Parameter  | Type  | Description  | 
|---|---|---|
error_msg  | String  | Error message.  | 
error_code  | String  | Error code.  | 
error_ext_msg  | String  | Extended error information. This parameter is not used currently and is set to null.  | 
Example Requests¶
PUT https://{dcs_endpoint}/v2/{project_id}/migration-task/{task_id}
{
  "resume_mode" : "auto"
}
Example Responses¶
Status code: 400
Invalid request.
{
  "error_code" : "111400063",
  "error_msg" : "Invalid {0} parameter in the request."
}
Status Codes¶
Status Code  | Description  | 
|---|---|
200  | Details of the background task queried successfully.  | 
400  | Invalid request.  | 
401  | Invalid authentication information.  | 
403  | Request rejected.  | 
404  | The requested resource could not be found.  | 
500  | Internal service error.  | 
Error Codes¶
See Error Codes.