Delete a Migration Task Group with a Specified ID
Function
This API is used to delete a migration task group.
Task groups in the creating, monitoring, or pausing status cannot be deleted. If you try to delete such a task group, the system will return a message indicating the deletion fails. To delete the task group, pause it first.
Calling Method
For details, see Calling APIs.
URI
DELETE /v2/{project_id}/taskgroups/{group_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | The project ID. Minimum: 1 Maximum: 1024 |
| group_id | Yes | String | The task group ID. Minimum: 1 Maximum: 1024 |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | The token used for IAM authentication. Minimum: 1 Maximum: 16384 |
Response Parameters
Status code: 200
Ok
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | The error code returned when a migration fails. Minimum: 0 Maximum: 10 |
| error_msg | String | The migration failure cause. Minimum: 0 Maximum: 1024 |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | The error code returned when a migration fails. Minimum: 0 Maximum: 10 |
| error_msg | String | The migration failure cause. Minimum: 0 Maximum: 1024 |
Example Requests
This example deletes the migration task group 157ece42-3270-4824-a3d2-f0187a03ca01 in the project f4e146cac1de45669c3fed73dc3b9c6f.
DELETE https://{endpoint}/v2/f4e146cac1de45669c3fed73dc3b9c6f/taskgroups/157ece42-3270-4824-a3d2-f0187a03ca01 Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Ok |
| 400 | Bad Request |
| 403 | Forbidden |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.