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"
}
}
Was this page helpful?