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.
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: |
| SortBy | No | String | Sorting field. Valid values: |
| SortOrder | No | String | Sorting method. Valid values: |
| Offset | No | Integer | Pagination offset. Default value: 0. |
| Limit | No | Integer | Number of returned entries. Default value: 20. Maximum value: 1000. |
| 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. |
Obtain a transcoding template by template name.
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
}
{
"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"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan