API Center
Introduction
API-Key Authentication
AK/SK Authentication
APM
Edge Application
CDN Pro
Edge Computing Hosting
IAM
Media Acceleration Live Broadcast
Media Acceleration-Live
Media Acceleration
Cloud Live
Low Latency Streaming
Cloud VoD
Bandwidth Report
StatusCode Report
Upload Assets
Manage Assets
Media Processing
CreateClearAdTask
ClearAdTaskQuery
TransCode
VideoConcatQuery
VideoClip
VideoClipQuery
VideoConcat
StartWorkflow
Playback
API Shield
Application Shield
Web Application Firewall
Flood Shield
Cloud Security 2.0
Bot Shield
Flood Shield 2.0
Dynamic Web Acceleration
Content Acceleration
CloudDNS
Object Storage
Local Storage
Certificate MGMT
Content MGMT
IP Verification
Cloud Monitor
Log Download
Others

ClearAdTaskQuery

Update time: 2024-07-29 17:11:18

Query AI clear AD task status and results

  • Single user trigger frequency: 300/5min
  • Applicable Products: Cloud VoD

Request

Body Params

NameDescription
*taskIdString
AI clear AD task ID

Response

Body Params

NameDescription
codeInteger
Status code
messageString
Operational information
dataObject
Return data
taskIdString
AI clear AD task ID
statusInteger
Status: 0(not started) 1(in progress) 2(Successful) 3(failure)
outputString
New video ID

Error code

Error code(code)Description(message)HTTP statusSemantic
1000Parameter error200Parameter error
1000The task does not exist or has no permission200The task does not exist or has no permission

Example

JSON
JSON
Request example
Copy
#!/bin/bash
username='example_username'
apiKey='example_apiKey'
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/vod/ai/clearAdTaskQuery" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "x-cnc-auth-method: BASIC" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
    "taskId": "idxxxxxx"
}'
Response example
Copy
{
	"code": 200,
	"data": {
		"output": "ab02dc9dca2a11eaab73c5d6f877d847",
		"status": 2,
		"taskId": "4ced37bc-ca2a-11ea-8653-ac61753fd979"
	},
	"message": "Operation succeeded"
}

Directory

  • Request
  • Response
  • Error code
  • Example
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!