Manually triggering content export
Request
To manually trigger content export from Content Exporter (CEX), send a GET request to:
https://<host>:<port>/exportcex/admin/v1/export/{type}/{scope}
This API supports delta export, but for VOD only. Live export supports export for a specified date range – see Live export.
Headers
Content-Type: application/json
Mandatory arguments
type
– the type of export. Eitherfull
ordelta
. (delta
is only valid whenscope
isVOD
.)scope
– which type of entity to export. Eitherlive
orVOD
.
Other arguments
contentProvider
– the name of the folder containing the Algorithm Parameter Set (APS) properties file (in query params). If not specified, the default folder is used.
– the name of the Algorithm Parameter Set (APS) properties file (in query params). This file can contain multiple blocks, which means that you can have a single file for full VOD export, delta VOD export, and live export.propFile
The parameters that can be used in this file are as follows:autoStartUp
– always set totrue
.destinationFolder
– the SFTP location (URI) to which the export file(s) are savedxmlValidationFileBeforeTransformation
– the name of the XSD file to be used to validate the input, For example,Nagravision-Vod-Unified-Export-Specification-v5.x.xsd
.xmlValidationFileAfterTransformation
– the name of the XSD file to be used to validate the output. For example,Export-Full-CMS-COD-Interface-v4.20.xsd
.xslTransformationFiles
– the files specifying the XSLT transformations to be applied. For example,Unified_VOD_Export-5.x_To_4.20.xslt
.cron
– the cron expression that specifies when and how often the export should be performed. This is not used for manually triggered exports.ftpStepWiseMode
– always set tofalse
.rootNodeIds
(VOD export only) – the IDs of the root catalogue nodes for which the export is to be performed (comma-delimited).exportFileName
– the name of the exported file. This should always be set to one of the following, depending on the type of export:- VOD delta export –
Export-Delta-Vod-{ROOTNODEID}-{FILENUMBER}-{TIMESTAMP}.xml
- Full VOD export –
ExportVod-{ROOTNODEID}-{FILENUMBER}-{TIMESTAMP}.xml
- Full live export –
ExportBtv-{CHANNELID}-{TIMESTAMP}.xml
- VOD delta export –
isNotificationEnabled
– whether notification is enabled. Always set totrue
.globalProviderId
– the provider name. This must be the same as in CPM.cmsDataModel
– the CMS data model that is being used. EithertechnicalModel
oreditorialModel
.maxParallelRequests
(VOD only) – the maximum number of parallel requests. Recommended value: 5.statusPerExportContext
– set as follows:- For VOD:
vod_export-1
- For live:
live_export-1
- For VOD:
Example
This GET request triggers a VOD delta export using the specified APS file:
https://<host>:<port>/exportcex/admin/v1/export/delta/vod??contentProvider=contentProvider1&propFile=delta_vod_APS1.properties
Response
A successful request returns an HTTP 202 status.
If an export for the specified scope is already running, it returns an HTTP 409 status.
See also
For full details of this API, see Content Exporter (CEX) API documentation v1.