Retrieve deleted mediaEntry via API

Anyone knows how to sue Kaltura api to retrieve the deleted mediaEntry from Kaltura platform?

Any suggestion is appreciated.

AML

1 Like

Hello,

You cannot use the API to get deleted objects of any kind.
You can use alpha/scripts/utils/restoreDeletedAssets.php to revive an asset, however.
Once revived, it will show up in queries but of course, it will also be available in the various Kaltura UIs as well.

Hi @jess sorry, my question was not correctly posted by me and I guess your reply is correct, but is not the case that I’m looking for. My fault.

I mean how is it possible, via api, list all mediaEntryId in status DELETED in order to synchronize an external platform with Kaltura.

Maybe I can try with media->list and Filter with KalturaEntryStatus==DELETED.

it works for you?

Thanks

Hi,

You can do:

$client = new KalturaClient($config);
$filter = new KalturaBaseEntryFilter();
$filter->statusEqual = KalturaEntryStatus::DELETED;
$pager = null;
$result = $client->baseEntry->listAction($filter, $pager);

The above is an example with our PHP clientlib but can be done with any of them of course.

1 Like