Updated on 2026-11-25 GMT+08:00

CLI Command Reference

Transcoding Template APIs

API Name

Command

Description

Operation

Creating a Transcoding Template

hcloud MPC CreateTransTemplate

This API is used to create a transcoding template.

Go debug

Modifying a Transcoding Template

hcloud MPC UpdateTransTemplate

This API is used to modify a custom transcoding template.

Go debug

Deleting a Transcoding Template

hcloud MPC DeleteTemplate

This API is used to delete a custom transcoding template.

Go debug

Querying Transcoding Templates

hcloud MPC ListTemplate

This API is used to query one or more custom transcoding templates. You can query one or more templates by ID or page number.

Go debug

Transcoding Template Group APIs

API Name

Command

Description

Operation

Creating a Transcoding Template Group

hcloud MPC CreateTemplateGroup

This API is used to create a transcoding template group. In a custom transcoding template group, a maximum of six output configurations can be defined.

Go debug

Querying Transcoding Template Groups

hcloud MPC ListTemplateGroup

This API is used to query one or more custom transcoding template groups.

Go debug

Modifying a Transcoding Template Group

hcloud MPC UpdateTemplateGroup

This API is used to modify a custom transcoding template group.

Go debug

Deleting a Transcoding Template Group

hcloud MPC DeleteTemplateGroup

This API is used to delete a custom transcoding template group.

Go debug

Watermark Template APIs

API Name

Command

Description

Operation

Creating a Watermark Template

hcloud MPC CreateWatermarkTemplate

This API is used to create a watermark template.

Go debug

Modifying a Watermark Template

hcloud MPC UpdateWatermarkTemplate

This API is used to modify a watermark template.

Go debug

Deleting a Watermark Template

hcloud MPC DeleteWatermarkTemplate

This API is used to delete a watermark template.

Go debug

Querying Watermark Templates

hcloud MPC ListWatermarkTemplate

This API is used to query one or more custom watermark templates by template ID or page number.

Go debug

Transcoding APIs

API Name

Command

Description

Operation

Creating a Transcoding Task

hcloud MPC CreateTranscodingTask

This API is used to create a transcoding task to transcode media files, and add watermarks and capture snapshots during transcoding. A transcoding template must be configured before video transcoding.

Go debug

Canceling a Transcoding Task

hcloud MPC DeleteTranscodingTask

This API is used to cancel a transcoding task. You can only cancel the queuing transcoding tasks. A transcoding task that has started or completed cannot be canceled.

Go debug

Querying Transcoding Tasks

hcloud MPC ListTranscodingTask

This API is used to query one or more transcoding tasks.

Go debug

Deletes Transcoding Task Records

hcloud MPC DeleteTranscodingTaskByConsole

Deletes transcoding task records. Only transcoding task records in the Canceled, Completed, or Failed status can be deleted.

Go debug

Queries Task Overview

hcloud MPC ListStatSummary

Queries the task duration statistics of the past week, past month, or a user-defined time period.

Go debug

Packaging APIs

API Name

Command

Description

Operation

Creating a Packaging Task

hcloud MPC CreateRemuxTask

This API is used to create a packaging task. Packaging is to convert the container format of audio and video files without changing the resolution and bitrate.

Go debug

Retrying a Packaging Task

hcloud MPC CreateRetryRemuxTask

This API is used to retry a failed packaging task.

Go debug

Querying Packaging Tasks

hcloud MPC ListRemuxTask

This API is used to query one or more packaging tasks.

Go debug

Canceling a Packaging Task

hcloud MPC CancelRemuxTask

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

Go debug

Deleting a Repackaging Task Record

hcloud MPC DeleteRemuxTask

Only the records in Canceled, Transcoding succeeded, or Transcoding failed state can be deleted.

Go debug

Animated GIF APIs

API Name

Command

Description

Operation

Creating an Animated GIF Task

hcloud MPC CreateAnimatedGraphicsTask

This API is used to create an animated GIF task to convert a complete video file or part of a video file into an animated GIF file.

Go debug

Querying Animated GIF Tasks

hcloud MPC ListAnimatedGraphicsTask

This API is used to query one or more animated GIF tasks.

Go debug

Canceling an Animated GIF Task

hcloud MPC DeleteAnimatedGraphicsTask

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

Go debug

APIs for Video Metadata Extraction

API Name

Command

Description

Operation

Creating a Video Parsing Task

hcloud MPC CreateExtractTask

This API is used to create a task to parse the metadata of a video file.

Go debug

Querying Video Parsing Tasks

hcloud MPC ListExtractTask

This API is used to query the status and results of one or more video parsing tasks.

Go debug

Canceling a Video Parsing Task

hcloud MPC DeleteExtractTask

This API is used to cancel a video parsing task. Only tasks in the queue can be canceled.

Go debug

Snapshot APIs

API Name

Command

Description

Operation

Creating a Snapshot Task

hcloud MPC CreateThumbnailsTask

This API is used to create a snapshot task to capture snapshots from a video at every set interval.Ensure that an input media file is stored in an OBS bucket in the same region as MPC and the permission to access the OBS bucket has been granted.

Go debug

Querying Snapshot Tasks

hcloud MPC ListThumbnailsTask

This API is used to query one or more snapshot tasks. The task results will be returned, including the status, input, and output.

Go debug

Canceling a Snapshot Task

hcloud MPC DeleteThumbnailsTask

This API is used to cancel a snapshot task.

Go debug

Authorization and configuration APIs

API Name

Command

Description

Operation

Configuring Transcoding Server Event Notifications

hcloud MPC NotifySmnTopicConfig

Configures event notifications on the transcoding server.

Go debug

Querying Transcoding Server Event Notifications

hcloud MPC ListNotifySmnTopicConfig

Queries the enabling statuses of subscription events of an SMN topic and subscription messages.

Go debug

Querying All Events on a Transcoding Server

hcloud MPC ListNotifyEvent

Queries all subscription events of an SMN topic.

Go debug

Querying Buckets

hcloud MPC ListAllBuckets

Queries the list of buckets in a specified region.

Go debug

Authorizing or Canceling Authorization of Access to OBS Buckets

hcloud MPC UpdateBucketAuthorized

Authorizes MPC to access OBS buckets or cancels the authorization. MPC only has the read and write permissions on authorized buckets. (MPC cannot be authorized to access buckets encrypted using KMS.)

Go debug

Querying Objects in a Bucket

hcloud MPC ListAllObsObjList

Queries objects in a bucket.

Go debug

Requesting OBS Authorization

hcloud MPC CreateAgenciesTask

Enables or disables OBS Authorization. After this function is enabled, MPC has the read and write permissions for all your buckets. OBS Authorization is not available for IAM users.

Go debug

Querying the Status of OBS Authorization Task Creation

hcloud MPC ShowAgenciesTask

Queries the status of creating an OBS authorization task.

Go debug

TenantAccess

API Name

Command

Description

Operation

Enable the media transcoding service as a tenant.

hcloud MPC UpdateTenantAccessInfo

The tenant enables the media transcoding service.

Go debug

Querying the Service Provisioning Status as a Tenant

hcloud MPC ShowTenantAccessInfo

The tenant queries the enabling status of the media transcoding service.

Go debug