tencent cloud

Video on Demand

Video Deletion Completion

PDF
Focus Mode
Font Size
Last updated: 2023-03-13 11:41:15

Event Name

FileDeleted

Event Description

If you have configured event notifications for your application, after a video is deleted, your application backend will be notified either by a “normal callback” or a “reliable callback”. For the content of the callback, see FileDeleteTask.

Example

Normal callback

In the normal callback mode, your callback URL will receive an HTTP POST request from VOD. The content of the callback is included in the request body, as shown below (fields with null values are omitted):
{
"EventType":"FileDeleted",
"FileDeleteEvent":{
"FileIdSet":[
"24961954183381008"
],
"FileDeleteResultInfo":[
{
"FileId":"24961954183381008",
"DeleteParts":[
{
"Type":"TranscodeFiles",
"Definition":0
}
]
}
]
}
}

Reliable callback

In the reliable callback mode, after calling the PullEvents API, you will receive an HTTP response in the following format (fields with null values are omitted):
{
"Response":{
"EventSet":[
{
"EventHandle":"EventHandle.N",
"EventType":"FileDeleted",
"FileDeleteEvent":{
"FileIdSet":[
"24961954183381008"
],
"FileDeleteResultInfo":[
{
"FileId":"24961954183381008",
"DeleteParts":[
{
"Type":"TranscodeFiles",
"Definition":0
}
]
}
]
}
}
],
"RequestId":"335bdaa3-db0e-46ce-9946-51941d9cb0f5"
}
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback