GetCustomTemplate
Queries the details of a custom media processing template.
Operation description
This operation queries the information about a template with a specified ID based on TemplateId, or queries the information about the default template. If TemplateId is not empty, other parameters are ignored and the information about the template with the specified TemplateId is queried. If TemplateId is empty, the default template of the user is queried based on other parameters. In this case, Type is required.
templatetype (Type):
1: Transcoding template
2: Snapshot template
3: Animated image template
4: Image watermark template
5: Text watermark template
6: Subtitle template
7: AI content moderation
8: AI smart cover
9: AI smart erasure
Subtype of the transcoding template (Subtype):
1: Normal transcoding template (Normal)
2: Audio transcoding template (AudioTranscode)
3: Remuxing (Remux)
4: Narrowband HD 1.0 (NarrowBandV1)
5: Narrowband HD 2.0 (NarrowBandV2)
Subtype of the snapshot template (Subtype):
1: Normal snapshot/Static snapshot (Normal)
2: Sprite snapshot (Sprite)
3: WebVTT snapshot (WebVtt)
Subtype of the AI content moderation template (Subtype):
1: Video moderation (Video)
2: Audio moderation (Audio)
3: Image moderation (Image)
Subtype of the AI smart erasure template (Subtype):
1: Icon erasure (VideoDelogo)
2: Subtitle erasure (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 templatetype ID used when querying the default template. This parameter is required when TemplateId is empty. |
1 |
| Subtype |
integer |
No |
The template subtype. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| CustomTemplate |
object |
The template information. |
|
| TemplateId |
string |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| TemplateName |
string |
The template name. |
Test snapshot template |
| Type |
integer |
The templatetype ID. |
2 |
| TypeName |
string |
The templatetype name. |
SnapshotTemplate |
| Subtype |
integer |
The template subtype ID. |
1 |
| SubtypeName |
string |
The template subtype name. |
Normal |
| Status |
string |
The template status. |
Normal |
| IsDefault |
boolean |
Indicates whether the template is the default template. |
true |
| TemplateConfig |
string |
The template configurations. |
{"Type":"Normal","FrameType":"normal","Time":0,"Count":10} |
| CreateTime |
string |
The time when the template was created. The time follows the ISO 8601 standard and is displayed in UTC (ending with Z). |
2022-01-01T10:00:00Z |
| ModifiedTime |
string |
The time when the template was modified. The time follows the ISO 8601 standard and is displayed in UTC (ending with Z). |
2022-01-01T11:00:00Z |
| FrontendHint |
object |
The reserved information for frontend display. |
|
| TranscodeTemplateHint |
object |
The hint information for the transcoding template. |
|
| BitrateControlType |
string |
The bitrate control type. |
CFR |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"CustomTemplate": {
"TemplateId": "****20b48fb04483915d4f2cd8ac****",
"TemplateName": "Test snapshot 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": "CFR"
}
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.