Gets the details of a Custom Template for Media Processing.
Operation description
This operation gets the details of a specific Custom Template or a Default Template. To get a specific template, provide its TemplateId; all other parameters will be ignored. To get a Default Template, omit the TemplateId and specify the template Type.
Valid values for the Type parameter:
-
1: Transcoding Template -
2: Snapshot Template -
3: Animated Image Template -
4: Image Watermark Template -
5: Text Watermark Template -
6: Subtitle Template -
7: AI-powered Intelligent Review template -
8: AI-powered Smart Cover template -
9: AI-powered Content Removal template
If Type is 1 (Transcoding Template), you can specify one of the following values for the Subtype parameter:
-
1: Normal transcoding (Normal) -
2: Audio-only transcoding (AudioTranscode) -
3: Remuxing (Remux) -
4: NarrowBand HD 1.0 (NarrowBandV1) -
5: NarrowBand HD 2.0 (NarrowBandV2)
If Type is 2 (Snapshot Template), you can specify one of the following values for the Subtype parameter:
-
1: Regular snapshot (Normal) -
2: Image Sprite (Sprite) -
3: WebVTT snapshot (WebVtt)
If Type is 7 (AI-powered Intelligent Review template), you can specify one of the following values for the Subtype parameter:
-
1: Video Review (Video) -
2: Audio Review (Audio) -
3: Image Review (Image)
If Type is 9 (AI-powered Content Removal template), you can specify one of the following values for the Subtype parameter:
-
1: Logo Removal (VideoDelogo) -
2: Subtitle Removal (VideoDetext)
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetCustomTemplate |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
No |
The template ID. |
****96e8864746a0b6f3**** |
| Type |
integer |
No |
The template type. This parameter is required if you do not specify |
1 |
| Subtype |
integer |
No |
The subtype of the template. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| CustomTemplate |
object |
The container for the template details. |
|
| TemplateId |
string |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| TemplateName |
string |
The name of the template. |
Test Screenshot Template |
| Type |
integer |
The ID of the template type. |
2 |
| TypeName |
string |
The name of the template type. |
SnapshotTemplate |
| Subtype |
integer |
The ID of the template subtype. |
1 |
| SubtypeName |
string |
The name of the template subtype. |
Normal |
| Status |
string |
The status of the template. |
Normal |
| IsDefault |
boolean |
Indicates if the template is a Default Template. |
true |
| TemplateConfig |
string |
The template configuration, as a JSON-formatted string. |
{"Type":"Normal","FrameType":"normal","Time":0,"Count":10} |
| CreateTime |
string |
The time the template was created, in YYYY-MM-DDTHH:mm:ssZ format and UTC. |
2022-01-01T10:00:00Z |
| ModifiedTime |
string |
The time the template was last modified, in YYYY-MM-DDTHH:mm:ssZ format and UTC. |
2022-01-01T11:00:00Z |
| FrontendHint |
object |
Reserved parameter. |
|
| TranscodeTemplateHint |
object |
Reserved parameter. |
|
| BitrateControlType |
string |
Reserved parameter. |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"CustomTemplate": {
"TemplateId": "****20b48fb04483915d4f2cd8ac****",
"TemplateName": "Test Screenshot Template",
"Type": 2,
"TypeName": "SnapshotTemplate",
"Subtype": 1,
"SubtypeName": "Normal",
"Status": "Normal",
"IsDefault": true,
"TemplateConfig": "{\"Type\":\"Normal\",\"FrameType\":\"normal\",\"Time\":0,\"Count\":10}",
"CreateTime": "2022-01-01T10:00:00Z",
"ModifiedTime": "2022-01-01T11:00:00Z\n",
"FrontendHint": {
"TranscodeTemplateHint": {
"BitrateControlType": ""
}
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.