Cloud VoD
Delete the uploaded video by calling deleteVideo.
Single user trigger frequency: 300/5min
The API Explorer provides the ability of visual interface online call API, code examples generation, and API documents quickly search .Try it
Name | Description |
---|---|
*videoIdString | id of the video you want to delete |
validateOccupyInteger | Occupied check, default check
0 uncheck
1 check |
notifyUrlString | Delete the result callback notification address |
Name | Description |
---|---|
codeInteger | Result status code, 200 indicates success |
messageString | Return message |
dataString | Return data |
Error code(code) | Description(message) | HTTP status | Semantic |
---|---|---|---|
400 | Resource occupied | 200 | Resource occupied |
1502 | The video doesn't exist! | 200 | The video doesn't exist! |
1522 | You have no permission to delete this video | 200 | You have no permission to delete this video |
1569 | Video disable operation | 200 | Video disable operation |
#!/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/videoManage/deleteVideo" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H "x-cnc-auth-method: BASIC" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "videoId":"XXXXXXXXXXX", "validateOccupy":1 }'
{ "code": 200, "data": "", "message": "操作成功" }