CLI Command Reference
Media file upload
| API Name | Command | Description | Operation |
|---|---|---|---|
| Uploading media files to VOD | hcloud VOD CreateAssetByFileUpload | When calling this API to create a media file, you need to upload the corresponding media file to the OBS bucket of VOD. | |
| Obtaining authorization for multipart upload | hcloud VOD ShowAssetTempAuthority | When a client requests for creating a media file greater than 20 MB, the media file needs to be uploaded to OBS by part. The client needs to obtain the authorization using this API each time before uploading a file part to OBS. | |
| Confirming media upload | hcloud VOD ConfirmAssetUpload | Notifies VOD of the media file upload status after the media file is uploaded by part, indicating that the media file has been uploaded. | |
| Authorization for access to buckets | hcloud VOD UpdateBucketAuthorized | Authorizes VOD to access an OBS bucket or cancels the authorization | |
| Dumping media files to OBS | hcloud VOD PublishAssetFromObs | If you have stored audio/video files in an OBS bucket before using VOD, you can call this API to dump the files to VOD so that VOD can manage your files. Before calling this API, you need to call the API for Authorizing Access to OBS to authorize VOD to access the OBS bucket where the audio/video files are stored. | |
| Selecting an OBS hosting mode for media files | hcloud VOD CreateTakeOverTask | Synchronizes audio/video files stored in OBS buckets to VOD through inventory hosting | |
| Pulling a Media Asset from a URL (in OBT) | hcloud VOD UploadMetaDataByUrl | Pulls an audio/video file offline from its URL and uploads it to VOD | |
| Verifying the upload | hcloud VOD CheckMd5Duplication | Checks whether the media file has been stored in VOD |
Media file processing
| API Name | Command | Description | Operation |
|---|---|---|---|
| Updating a video | hcloud VOD UpdateAsset | After a media file is created, upload a thumbnail, update a video file, or update the existing thumbnail. | |
| Media file processing | hcloud VOD CreateAssetProcessTask | Transcodes, captures snapshots of, or encrypts a video. You can start one or multiple operations at a time. | |
| Canceling a transcoding task | hcloud VOD CancelAssetTranscodeTask | Only transcoding tasks in the queue can be canceled. | |
| Extracting audio | hcloud VOD CreateExtractAudioTask | This API is an asynchronous API. After an audio extraction task is created and delivered, asset_id and the extracted audio_asset_id are returned. However, the audio extraction task is not complete immediately. You can check whether the audio extraction task is complete in the audio extraction completion event on the event notification page. | |
| Canceling an audio extraction task | hcloud VOD CancelExtractAudioTask | Only audio extraction tasks in the queue can be canceled. | |
| Creating a media asset review task | hcloud VOD CreateAssetReviewTask | Reviews the uploaded media file. You can call the API for Querying File Details to view the review result. | |
| Setting a thumbnail | hcloud VOD UpdateCoverByThumbnail | Sets a video snapshot as the thumbnail |
Media file management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Deleting a media file | hcloud VOD DeleteAssets | Deletes a media file | |
| Publishing media files | hcloud VOD PublishAssets | Sets the status of the media file to published. Media files can be published in batches. | |
| Unpublishing media files | hcloud VOD UnpublishAssets | Sets the status of the media file to unpublished. | |
| Querying media files | hcloud VOD ShowAssetMeta | Queries media files by ID, category, status, start time and end time | |
| Modifying media file attributes | hcloud VOD UpdateAssetMeta | Modifies media file attributes | |
| Queries details about a specified media file | hcloud VOD ShowAssetDetail | Queries details about a specified media file | |
| Querying media files | hcloud VOD ListAssetList | Queries media files. Each record in the list contains the brief information of a media file. | |
| Querying Media Asset Tasks | hcloud VOD ListAssetTaskInfo | This API is used to query media asset tasks. |
OBS hosting management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying hosting tasks | hcloud VOD ListTakeOverTask | Queries OBS inventory hosting tasks | |
| Querying details about a hosting task | hcloud VOD ShowTakeOverTaskDetails | Queries details about an OBS inventory hosting task | |
| Querying details about a hosted media file | hcloud VOD ShowTakeOverAssetDetails | Queries details about a media file hosted by OBS |
Media file pre-loading
| API Name | Command | Description | Operation |
|---|---|---|---|
| CDN pre-loading | hcloud VOD CreatePreheatingAsset | After media files are published, you can call this API to request CDN for media file pre-loading by ID or URL. Upon the first request, the CDN caches the requested media file for faster download and better user experience. One tenant can pre-load a maximum of 1,000 media files per day. | |
| Querying pre-loading results | hcloud VOD ShowPreheatingAsset | Queries pre-loading results |
Media Asset Update
| API Name | Command | Description | Operation |
|---|---|---|---|
| CDN cache update | hcloud VOD RefreshAsset | The CDN cache of media assets in the completed, deleted, or published status can be updated by the specified asset ID or URL to force the cached resources on CDN PoPs to expire. | |
| Querying CDN Cache Update | hcloud VOD ShowRefreshResult | Queries update results. |
Media file category
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Media Asset Category | hcloud VOD CreateAssetCategory | This API is used to create a media asset category. | |
| Modifying a media file category | hcloud VOD UpdateAssetCategory | Modifies a media file category | |
| Deleting a media file category | hcloud VOD DeleteAssetCategory | Deletes a media file category | |
| Querying specified categories | hcloud VOD ListAssetCategory | Queries a specified category and its subcategories | |
| Querying a Media Asset Category | hcloud VOD ListCategoryInfo | Queries a specified category and its subcategories |
Key query
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying keys | hcloud VOD ShowAssetCipher | When a device plays an encrypted HLS video, the device requests a key from the tenant management system, which checks whether there are keys cached locally. If not, this API is called to query the key from VOD. For details about where this API is applied, see Protecting Videos with HLS Encryption. |
Statistical analysis
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying CDN statistics | hcloud VOD ShowCdnStatistics | Queries CDN statistics, including traffic, peak bandwidth, total number of requests, request hit ratio, and traffic hit ratio. | |
| Querying origin server statistics | hcloud VOD ShowVodStatistics | Queries statistics on VOD origin servers, including the storage space and transcoding output. Only historical data from the last month can be queried. | |
| Querying statistics on the top N media files | hcloud VOD ListTopStatistics | Queries statistics on the top 100 media assets by playback time for a specified domain name on a specified date. | |
| Querying playback logs of a domain name | hcloud VOD ListDomainLogs | Queries CDN logs of a specified VOD domain name in a specified period | |
| Querying Daily Playback Statistics of a Media Asset | hcloud VOD ListAssetDailySummaryLog | Queries daily playback statistics of a media asset. | |
| Querying CDN Statistics | hcloud VOD ListCdnStatistics | This API is used to query CDN statistics, including the traffic volume, peak bandwidth, total number of requests, request hit ratio, and traffic hit ratio. The statistics are displayed with a one-hour delay. |
Transcoding template group management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Customizing a transcoding template group | hcloud VOD CreateTemplateGroup | Customizes a transcoding template group | |
| Querying transcoding template groups | hcloud VOD ListTemplateGroup | Queries transcoding template groups | |
| Modifying a custom transcoding template group | hcloud VOD UpdateTemplateGroup | Modifies a custom transcoding template group | |
| Deleting a custom transcoding template group | hcloud VOD DeleteTemplateGroup | Deletes a custom transcoding template group |
Watermark template management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a watermark template | hcloud VOD CreateWatermarkTemplate | Creates a watermark template | |
| Modifying a watermark template | hcloud VOD UpdateWatermarkTemplate | Modifies a watermark template | |
| Querying watermark templates | hcloud VOD ListWatermarkTemplate | Queries watermark templates | |
| Deleting a watermark template | hcloud VOD DeleteWatermarkTemplate | description: Deletes a watermark template | |
| Confirming watermark image upload | hcloud VOD ConfirmImageUpload | Checks the upload status of the watermark image |
Subtitle management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Packaging multiple subtitles | hcloud VOD ModifySubtitle | Packages multiple subtitles in HLS VTT or HLS SRT format |
Transcoded output management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Deleting a Transcoded Output | hcloud VOD DeleteTranscodeProduct | Deletes a transcoded output. |
Transcoding template management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Customizing a transcoding template | hcloud VOD CreateTranscodeTemplate | Customizes a transcoding template | |
| Querying transcoding templates | hcloud VOD ListTranscodeTemplate | Queries transcoding templates | |
| Modifying a transcoding template | hcloud VOD UpdateTranscodeTemplate | Modifies a transcoding template | |
| Deleting a custom template | hcloud VOD DeleteTranscodeTemplate | Deletes a custom template |
Transcoding template set management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a transcoding template group set | hcloud VOD CreateTemplateGroupCollection | Creates a transcoding template group set | |
| Modifying a transcoding template group set | hcloud VOD UpdateTemplateGroupCollection | Modifies a transcoding template group set | |
| Querying custom template group sets | hcloud VOD ListTemplateGroupCollection | Queries transcoding template group sets | |
| Deleting a transcoding template group set | hcloud VOD DeleteTemplateGroupCollection | Deletes a transcoding template group set |
Media Asset Storage Mode Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Changing the OBS Storage Class of a Media Asset | hcloud VOD UpdateStorageMode | Changes the OBS storage class of a media asset. | |
| Querying Retrieved Data | hcloud VOD ShowVodRetrieval | This API is used to query the statistics about data volume whose storage class is changed from Infrequent Access or Archive to Standard. | |
| Modifying the Cold Storage Scope of a Media Asset | hcloud VOD UpdateStorageModeType | Modifies the cold storage scope of a media asset. | |
| Querying the Cold Storage Settings of a Media Asset | hcloud VOD ShowStorageModeType | Query the cold storage settings of a media asset. |
Snapshot Management
| API Name | Command | Description | Operation |
|---|---|---|---|
| Listing Snapshot Tasks | hcloud VOD ListThumbnailInfo | This API is used to query the list of snapshot task results. | |
| Deleting Snapshots of a Media Asset | hcloud VOD DeleteThumbnails | This API is used to delete the snapshots of a media asset. A maximum of 10 snapshots can be deleted at a time. | |
| Querying Snapshot Details | hcloud VOD ListThumbnailDetails | Querying Snapshot Details |
Media Asset Editing
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating an Editing Task | hcloud VOD CreateAssetEditTask | This API is used to create an editing task. | |
| Querying an Editing Task | hcloud VOD ListAssetEditTask | This API is used to query an editing task. | |
| Canceling an Editing Task | hcloud VOD DeleteAssetEditTask | This API is used to cancel an editing task. Only tasks in the queue can be canceled. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot