tencent cloud

APIs

DescribeJustInTimeTranscodeTemplates

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-25 16:59:21

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

This API is used to retrieve the transcoding template detail list based on the just in time transcoding template name, template type, or unique ID. The returned results include all eligible custom templates and preset templates.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeJustInTimeTranscodeTemplates.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
ZoneId Yes String Site ID.
Filters.N No Array of Filter Filter criteria. The maximum number of Filters is 20, and the maximum number of Filters.Values is 20. If this parameter is left empty, authorized just in time transcoding templates under the current ZoneId are returned by default. The detailed filter criteria are as follows:
  • template-name: filter by template name in bulk. For example: mytemplate;
  • template-type: filter by template type in bulk. For example: preset or custom.
  • template-id: filter by template ID in bulk. For example: C1LZ7982VgTpYhJ7M.
  • Empty by default.
    SortBy No String Sorting field. Valid values:
  • createTime: template creation time.
  • Default value: createTime.
    SortOrder No String Sorting method. Valid values:
  • asc: ascending order;
  • desc: descending order.
  • Default value: desc.
    Offset No Integer Pagination offset. Default value: 0.
    Limit No Integer Number of returned entries. Default value: 20. Maximum value: 1000.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Total number of records that meet the filtering conditions.
    TemplateSet Array of JustInTimeTranscodeTemplate Template details list.
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Obtaining Transcoding Templates

    Obtain a transcoding template by template name.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeJustInTimeTranscodeTemplates
    <Common request parameters>
    
    {
        "ZoneId": "zone-djuqmq",
        "Filters": [
            {
                "Name": "template-name",
                "Values": [
                    "myTemplate"
                ]
            }
        ],
        "Offset": 0,
        "Limit": 100
    }

    Output Example

    {
        "Response": {
            "TotalCount": 1,
            "TemplateSet": [
                {
                    "TemplateId": "C1LZ7982VgTpYhJ7M",
                    "TemplateName": "myTemplate",
                    "Comment": "MyTranscodeTemplate",
                    "Type": "Custom",
                    "VideoStreamSwitch": "on",
                    "AudioStreamSwitch": "on",
                    "VideoTemplate": {
                        "Codec": "H.264",
                        "Fps": 24,
                        "FillType": "black",
                        "Bitrate": 2048,
                        "ResolutionAdaptive": "open",
                        "Width": 0,
                        "Height": 0
                    },
                    "AudioTemplate": {
                        "Codec": "libfdk_aac",
                        "AudioChannel": 2
                    },
                    "CreateTime": "2018-10-01T10:00:00Z",
                    "UpdateTime": "2018-10-01T10:00:00Z"
                }
            ],
            "RequestId": "12ae8d8e-dce3-4151-9d4b-5594145287e1"
        }
    }

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    FailedOperation.ProductDiscontinued The product will already be discontinued. Operation denied.
    FailedOperation.ProductNotActivated No. Enable this product and try again.
    InternalError Internal error.
    InvalidFilter Invalid Filter
    InvalidParameterValue Parameter value error.
    InvalidParameterValue.ZoneNotFound No corresponding site. Please ensure the site information is filled correctly.
    InvalidParameterValue.ZonePaused Site disabled. Check the current site status.
    MissingParameter Parameters are missing.
    UnauthorizedOperation Unauthorized operation.

    Bantuan dan Dukungan

    Apakah halaman ini membantu?

    masukan