Help Center/ Video On Demand/ CLI Reference/ CLI Command Reference
Updated on 2026-11-25 GMT+08:00

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.

Go debug

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.

Go debug

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.

Go debug

Authorization for access to buckets

hcloud VOD UpdateBucketAuthorized

Authorizes VOD to access an OBS bucket or cancels the authorization

Go debug

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.

Go debug

Selecting an OBS hosting mode for media files

hcloud VOD CreateTakeOverTask

Synchronizes audio/video files stored in OBS buckets to VOD through inventory hosting

Go debug

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

Go debug

Verifying the upload

hcloud VOD CheckMd5Duplication

Checks whether the media file has been stored in VOD

Go debug

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.

Go debug

Media file processing

hcloud VOD CreateAssetProcessTask

Transcodes, captures snapshots of, or encrypts a video. You can start one or multiple operations at a time.

Go debug

Canceling a transcoding task

hcloud VOD CancelAssetTranscodeTask

Only transcoding tasks in the queue can be canceled.

Go debug

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.

Go debug

Canceling an audio extraction task

hcloud VOD CancelExtractAudioTask

Only audio extraction tasks in the queue can be canceled.

Go debug

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.

Go debug

Setting a thumbnail

hcloud VOD UpdateCoverByThumbnail

Sets a video snapshot as the thumbnail

Go debug

Media file management

API Name

Command

Description

Operation

Deleting a media file

hcloud VOD DeleteAssets

Deletes a media file

Go debug

Publishing media files

hcloud VOD PublishAssets

Sets the status of the media file to published. Media files can be published in batches.

Go debug

Unpublishing media files

hcloud VOD UnpublishAssets

Sets the status of the media file to unpublished.

Go debug

Querying media files

hcloud VOD ShowAssetMeta

Queries media files by ID, category, status, start time and end time

Go debug

Modifying media file attributes

hcloud VOD UpdateAssetMeta

Modifies media file attributes

Go debug

Queries details about a specified media file

hcloud VOD ShowAssetDetail

Queries details about a specified media file

Go debug

Querying media files

hcloud VOD ListAssetList

Queries media files. Each record in the list contains the brief information of a media file.

Go debug

Querying Media Asset Tasks

hcloud VOD ListAssetTaskInfo

This API is used to query media asset tasks.

Go debug

OBS hosting management

API Name

Command

Description

Operation

Querying hosting tasks

hcloud VOD ListTakeOverTask

Queries OBS inventory hosting tasks

Go debug

Querying details about a hosting task

hcloud VOD ShowTakeOverTaskDetails

Queries details about an OBS inventory hosting task

Go debug

Querying details about a hosted media file

hcloud VOD ShowTakeOverAssetDetails

Queries details about a media file hosted by OBS

Go debug

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.

Go debug

Querying pre-loading results

hcloud VOD ShowPreheatingAsset

Queries pre-loading results

Go debug

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.

Go debug

Querying CDN Cache Update

hcloud VOD ShowRefreshResult

Queries update results.

Go debug

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.

Go debug

Modifying a media file category

hcloud VOD UpdateAssetCategory

Modifies a media file category

Go debug

Deleting a media file category

hcloud VOD DeleteAssetCategory

Deletes a media file category

Go debug

Querying specified categories

hcloud VOD ListAssetCategory

Queries a specified category and its subcategories

Go debug

Querying a Media Asset Category

hcloud VOD ListCategoryInfo

Queries a specified category and its subcategories

Go debug

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.

Go debug

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.

Go debug

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.

Go debug

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.

Go debug

Querying playback logs of a domain name

hcloud VOD ListDomainLogs

Queries CDN logs of a specified VOD domain name in a specified period

Go debug

Querying Daily Playback Statistics of a Media Asset

hcloud VOD ListAssetDailySummaryLog

Queries daily playback statistics of a media asset.

Go debug

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.

Go debug

Transcoding template group management

API Name

Command

Description

Operation

Customizing a transcoding template group

hcloud VOD CreateTemplateGroup

Customizes a transcoding template group

Go debug

Querying transcoding template groups

hcloud VOD ListTemplateGroup

Queries transcoding template groups

Go debug

Modifying a custom transcoding template group

hcloud VOD UpdateTemplateGroup

Modifies a custom transcoding template group

Go debug

Deleting a custom transcoding template group

hcloud VOD DeleteTemplateGroup

Deletes a custom transcoding template group

Go debug

Watermark template management

API Name

Command

Description

Operation

Creating a watermark template

hcloud VOD CreateWatermarkTemplate

Creates a watermark template

Go debug

Modifying a watermark template

hcloud VOD UpdateWatermarkTemplate

Modifies a watermark template

Go debug

Querying watermark templates

hcloud VOD ListWatermarkTemplate

Queries watermark templates

Go debug

Deleting a watermark template

hcloud VOD DeleteWatermarkTemplate

description: Deletes a watermark template

Go debug

Confirming watermark image upload

hcloud VOD ConfirmImageUpload

Checks the upload status of the watermark image

Go debug

Subtitle management

API Name

Command

Description

Operation

Packaging multiple subtitles

hcloud VOD ModifySubtitle

Packages multiple subtitles in HLS VTT or HLS SRT format

Go debug

Transcoded output management

API Name

Command

Description

Operation

Deleting a Transcoded Output

hcloud VOD DeleteTranscodeProduct

Deletes a transcoded output.

Go debug

Transcoding template management

API Name

Command

Description

Operation

Customizing a transcoding template

hcloud VOD CreateTranscodeTemplate

Customizes a transcoding template

Go debug

Querying transcoding templates

hcloud VOD ListTranscodeTemplate

Queries transcoding templates

Go debug

Modifying a transcoding template

hcloud VOD UpdateTranscodeTemplate

Modifies a transcoding template

Go debug

Deleting a custom template

hcloud VOD DeleteTranscodeTemplate

Deletes a custom template

Go debug

Transcoding template set management

API Name

Command

Description

Operation

Creating a transcoding template group set

hcloud VOD CreateTemplateGroupCollection

Creates a transcoding template group set

Go debug

Modifying a transcoding template group set

hcloud VOD UpdateTemplateGroupCollection

Modifies a transcoding template group set

Go debug

Querying custom template group sets

hcloud VOD ListTemplateGroupCollection

Queries transcoding template group sets

Go debug

Deleting a transcoding template group set

hcloud VOD DeleteTemplateGroupCollection

Deletes a transcoding template group set

Go debug

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.

Go debug

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.

Go debug

Modifying the Cold Storage Scope of a Media Asset

hcloud VOD UpdateStorageModeType

Modifies the cold storage scope of a media asset.

Go debug

Querying the Cold Storage Settings of a Media Asset

hcloud VOD ShowStorageModeType

Query the cold storage settings of a media asset.

Go debug

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.

Go debug

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.

Go debug

Querying Snapshot Details

hcloud VOD ListThumbnailDetails

Querying Snapshot Details

Go debug

Media Asset Editing

API Name

Command

Description

Operation

Creating an Editing Task

hcloud VOD CreateAssetEditTask

This API is used to create an editing task.

Go debug

Querying an Editing Task

hcloud VOD ListAssetEditTask

This API is used to query an editing task.

Go debug

Canceling an Editing Task

hcloud VOD DeleteAssetEditTask

This API is used to cancel an editing task. Only tasks in the queue can be canceled.

Go debug

HTTPS Configuration

API Name

Command

Description

Operation

Configuring HTTPS

hcloud VOD UpdateHttpsConfig

Configures HTTPS certificates for domain names.

Go debug

Querying HTTPS Configuration

hcloud VOD ShowHttpsConfig

Queries the certificate configuration.

Go debug