DeleteJob

Last updated: 2019-07-08 20:38:17

1. API Description

API request domain name: batch.tencentcloudapi.com.

This API is used to delete job records. Deleting a job is equivalent to deleting all the information related to the job. After successful deletion, all information related to the job cannot be queried. The job to be deleted must be in a completed state, and all task instances contained in it must also be in a completed state; otherwise, the operation will be prohibited. The completed state can be either the SUCCEED or FAILED state.

Default API request frequency limit: 2 times/second.

2. Input Parameters

The following list of request parameters lists only the API request parameters and some common parameters. For the complete list of common parameters, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the value for this API: DeleteJob
Version Yes String Common parameter; the value for this API: 2017-03-12
Region Yes String Common parameters; for details, see the Region List supported by the product.
JobId Yes String Job ID

3. Output Parameters

Parameter name Type Description
RequestId String The unique request ID which is returned for each request. The RequestId for the current request needs to be provided when troubleshooting.

4. Examples

Example 1. Deleting a Job

Input

https://batch.tencentcloudapi.com/?Action=DeleteJob
&JobId=job-f5da1edl
&<Common request parameter>

Output

{
  "Response": {
    "RequestId": "0ffc9347-a47a-43a6-a64a-aa77fda7ea13"
  }
}

5. Developer Resources

It is recommended to use API 3.0 Explorer. This tool provides various capabilities such as online debugging, signature verification, SDK code generation and quick API retrieval that significantly reduce the difficulty of using cloud APIs.

Cloud API 3.0 comes with a set of complementary development tools that make it easier to call the API.

6. Error Codes

Only the error codes related to this API are listed below. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error
InvalidParameter.JobIdMalformed Invalid job ID format.
ResourceNotFound.Job The specified job does not exist.
UnsupportedOperation This operation is prohibited.