Cancels URL upload tasks in the queue.

Note You can cancel only URL upload tasks in the Pending state. Upload tasks that have already started cannot be canceled.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CancelUrlUploadJobs

The operation that you want to perform. Set the value to CancelUrlUploadJobs.

JobIds String No 341c92e6c18****dc435ee31253685,0193d395****194a83ad6ee2ef27a5b5

The IDs of the URL upload tasks that you want to cancel. Separate multiple task IDs with commas (,). You can query a maximum of 10 task IDs.

UploadUrls String No http://www.test.upload.com/***/test1.mp4,http://www.test.upload.com/***/test2.mp4

The upload URLs of source video files. Separate multiple URLs with commas (,). You can query a maximum of 10 URLs.

The URLs must be encoded.

Note You must specify a value for JobIds or UploadUrls. If you specify values for both the JobIds and UploadUrls parameters, only the value of the JobIds parameter takes effect.

Response parameters

Parameter Type Example Description
RequestId String 25818875-5F78-****-****-D7393642CA58

The ID of the request.

CanceledJobs Array of String 341c92e6c18****dc435ee31253685,0193d395****194a83ad6ee2ef27a5b5

The list of canceled tasks. The return value is JobId.

NonExists Array of String http://www.test.upload.com/***/test1.mp4,http://www.test.upload.com/***/test2.mp4

The list of job IDs or URLs that do not exist.

If you specified the parameter value for JobIds in the request, the return value is JobId. If you specified the parameter value for UploadURL in the request, the return value is URL.

Examples

Sample requests

https://vod.{ApiRegion}.aliyuncs.com/?Action=CancelUrlUploadJobs
&UploadURLs=http://www.test.upload.com/***/test1.mp4,http://www.test.upload.com/***/test2.mp4a5b5
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CancelUrlUploadJobsResponse>
    <RequestId>BA7C14EC-A175-****-A9E5-67C8850645F7</RequestId>
    <CanceledJobs>341c92e6c18****dc435ee31253685</CanceledJobs>
    <NonExists>http://www.test.upload.com/***/test2.mp4</NonExists>
</CancelUrlUploadJobsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "BA7C14EC-A175-****-A9E5-67C8850645F7",
  "CanceledJobs" : [ "341c92e6c18****dc435ee31253685" ],
  "NonExists" : [ "http://www.test.upload.com/***/test2.mp4" ]
}

Error codes

For a list of error codes, visit the API Error Center.