Deleting a Background Task
Function
Deleting a background task.
Calling Method
For details, see Calling APIs.
URI
DELETE /v2/{project_id}/instances/{instance_id}/tasks/{task_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
|
task_id |
Yes |
String |
Background task ID. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
message |
String |
Returned message. |
Status code: 204
Background task deleted successfully.
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
Deleting a background task.
DELETE https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/tasks/8abf6e1e72c12e7c0172c15b508500aa
Example Responses
Status code: 200
Background task deleted successfully.
{
"message" : ""
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Background task deleted successfully. |
|
204 |
Background task deleted successfully. |
|
400 |
Invalid request. |
|
401 |
Invalid authentication information. |
|
403 |
The request is rejected. |
|
404 |
The requested resource is not found. |
|
500 |
Internal service error. |
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.