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. | |
| Modifying a Transcoding Template | hcloud MPC UpdateTransTemplate | This API is used to modify a custom transcoding template. | |
| Deleting a Transcoding Template | hcloud MPC DeleteTemplate | This API is used to delete a custom transcoding template. | |
| 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. |
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. | |
| Querying Transcoding Template Groups | hcloud MPC ListTemplateGroup | This API is used to query one or more custom transcoding template groups. | |
| Modifying a Transcoding Template Group | hcloud MPC UpdateTemplateGroup | This API is used to modify a custom transcoding template group. | |
| Deleting a Transcoding Template Group | hcloud MPC DeleteTemplateGroup | This API is used to delete a custom transcoding template group. |
Watermark Template APIs
| API Name | Command | Description | Operation |
|---|---|---|---|
| Creating a Watermark Template | hcloud MPC CreateWatermarkTemplate | This API is used to create a watermark template. | |
| Modifying a Watermark Template | hcloud MPC UpdateWatermarkTemplate | This API is used to modify a watermark template. | |
| Deleting a Watermark Template | hcloud MPC DeleteWatermarkTemplate | This API is used to delete a watermark template. | |
| Querying Watermark Templates | hcloud MPC ListWatermarkTemplate | This API is used to query one or more custom watermark templates by template ID or page number. |
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. | |
| 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. | |
| Querying Transcoding Tasks | hcloud MPC ListTranscodingTask | This API is used to query one or more transcoding tasks. | |
| 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. | |
| Queries Task Overview | hcloud MPC ListStatSummary | Queries the task duration statistics of the past week, past month, or a user-defined time period. |
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. | |
| Retrying a Packaging Task | hcloud MPC CreateRetryRemuxTask | This API is used to retry a failed packaging task. | |
| Querying Packaging Tasks | hcloud MPC ListRemuxTask | This API is used to query one or more packaging tasks. | |
| Canceling a Packaging Task | hcloud MPC CancelRemuxTask | This API is used to cancel a packaging task. Only tasks in the queue can be canceled. | |
| Deleting a Repackaging Task Record | hcloud MPC DeleteRemuxTask | Only the records in Canceled, Transcoding succeeded, or Transcoding failed state can be deleted. |
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. | |
| Querying Animated GIF Tasks | hcloud MPC ListAnimatedGraphicsTask | This API is used to query one or more animated GIF tasks. | |
| 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. |
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. | |
| Querying Video Parsing Tasks | hcloud MPC ListExtractTask | This API is used to query the status and results of one or more video parsing tasks. | |
| 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. |
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. | |
| 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. | |
| Canceling a Snapshot Task | hcloud MPC DeleteThumbnailsTask | This API is used to cancel a snapshot task. |
Authorization and configuration APIs
| API Name | Command | Description | Operation |
|---|---|---|---|
| Configuring Transcoding Server Event Notifications | hcloud MPC NotifySmnTopicConfig | Configures event notifications on the transcoding server. | |
| Querying Transcoding Server Event Notifications | hcloud MPC ListNotifySmnTopicConfig | Queries the enabling statuses of subscription events of an SMN topic and subscription messages. | |
| Querying All Events on a Transcoding Server | hcloud MPC ListNotifyEvent | Queries all subscription events of an SMN topic. | |
| Querying Buckets | hcloud MPC ListAllBuckets | Queries the list of buckets in a specified region. | |
| 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.) | |
| Querying Objects in a Bucket | hcloud MPC ListAllObsObjList | Queries objects in a bucket. | |
| 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. | |
| Querying the Status of OBS Authorization Task Creation | hcloud MPC ShowAgenciesTask | Queries the status of creating an OBS authorization task. |
TenantAccess
| API Name | Command | Description | Operation |
|---|---|---|---|
| Enable the media transcoding service as a tenant. | hcloud MPC UpdateTenantAccessInfo | The tenant enables the media transcoding service. | |
| Querying the Service Provisioning Status as a Tenant | hcloud MPC ShowTenantAccessInfo | The tenant queries the enabling status of the media transcoding service. |
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