Deleting a Migration Task
Function
This API is used to delete a migration task. In-progress tasks cannot be deleted. If you try to delete an in-progress task, the system will return a message indicating the deletion fails. To delete such a task, pause the task first.
Debugging
You can debug this API in API Explorer.
URI
DELETE /v2/{project_id}/tasks/{task_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Specifies the project ID. Minimum length: 1 character Maximum length: 1,024 characters |
| task_id | Yes | Long | Specifies the migration task ID. Minimum value: 0 Maximum value: 999999999999999 |
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Specifies the token used for IAM authentication. Minimum length: 1 character Maximum length: 16,384 characters |
Response
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Specifies the error message. |
| error_code | String | Specifies the error code. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Specifies the error message. |
| error_code | String | Specifies the error code. |
Example Request
None
Example Response
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 403 | Forbidden |
Error Codes
See Error Codes.
Last Article: Starting a Migration Task
Next Article: Updating the Traffic Limit Rule of a Migration Task
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.