edit-icon download-icon

CancelJob

Last Updated: Feb 06, 2018

Description

The CancelJob API cancels transcoding tasks. The API has the following restrictions:

  • Only tasks in “Submitted” state can be canceled.
  • We recommend that you first call the UpdatePipeline API to set the Media Transcoding queue status to Paused to stop task scheduling, and then call this API to cancel the tasks. After canceling the tasks, recover the Media Transcoding queue status to Active. In this way, tasks in the Media Transcoding queue can be scheduled and executed.

Request parameters

Parameter Type Required or not Description
Action String Yes API of the action, system required parameter. Set this parameter to CancelJob.
JobId String Yes Task ID.

Return parameters

Name Type Description
JobId String Task ID

Example

Request example

  1. http://mts.cn-hangzhou.aliyuncs.com/?Action=CancelJob&JobId=88c6ca184c0e47098a5b665e2a126797&<Public parameters>

Return example

XML

  1. <CancelJobResponse>
  2. <RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
  3. <JobId>88c6ca184c0e47098a5b665e2a126797</JobId>
  4. </CancelJobResponse>

JSON

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  3. "JobId": "88c6ca184c0e47098a5b665e2a126797"
  4. }
Thank you! We've received your feedback.