Queries a list of templates that meet the specified conditions. You can query templates based on information such as the template status and creation source.
Operation description
A template is an encapsulation of the timeline of a media editing and production job. You can define a common timeline as a template. When you have the same requirements, you need to only specify key parameters and materials to produce videos.
-
For more information about how to use a regular template, see Create and use a regular template.
-
For more information about how to use an advanced template, see Create and use advanced templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListTemplates |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
No |
The template type. Valid values:
Valid values:
|
Timeline |
| Status |
string |
No |
The template state. Valid values:
Valid values:
|
Available |
| CreateSource |
string |
No |
The source from which the template was created. Valid values:
Valid values:
|
OpenAPI |
| Keyword |
string |
No |
The search keyword. You can use the template ID or title as the keyword to search for templates. |
****20b48fb04483915d4f2cd8ac**** |
| SortType |
string |
No |
The sorting parameter. By default, the query results are sorted by creation time in descending order. Valid values:
Valid values:
|
CreationTime:Desc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| TotalCount |
integer |
The total number of entries returned. |
100 |
| Templates |
array<object> |
The queried templates. |
|
|
object |
The template information. |
||
| TemplateId |
string |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| Name |
string |
The template name. |
Cloud Editing Template |
| Type |
string |
The template type. Valid values:
Valid values:
|
Timeline |
| Config |
string |
The template configurations. |
Refer toTimelinetemplateConfiguration details |
| PreviewMedia |
string |
The preview media asset. |
****20b48fb04483915d4f2cd8ac**** |
| Status |
string |
The template state. Valid values:
Valid values:
|
Available |
| CreateSource |
string |
The source from which the template was created. Valid values:
Valid values:
|
OpenAPI |
| ModifiedSource |
string |
The source from which the template was modified. Valid values:
Valid values:
|
OpenAPI |
| PreviewMediaStatus |
string |
The state of the preview media asset. Valid values:
Valid values:
|
Normal |
| CreationTime |
string |
The time when the template was created. |
2020-12-26T04:11:10Z |
| ModifiedTime |
string |
The time when the template was last modified. |
2020-12-26T04:11:10Z |
| CoverURL |
string |
The thumbnail URL. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg |
| ClipsParam |
string |
The clip parameters. |
{"Media1":"mediaId","Text1":"text"} |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"TotalCount": 100,
"Templates": [
{
"TemplateId": "****20b48fb04483915d4f2cd8ac****",
"Name": "Cloud Editing Template",
"Type": "Timeline",
"Config": "Refer toTimelinetemplateConfiguration details",
"PreviewMedia": "****20b48fb04483915d4f2cd8ac****",
"Status": "Available",
"CreateSource": "OpenAPI",
"ModifiedSource": "OpenAPI",
"PreviewMediaStatus": "Normal",
"CreationTime": "2020-12-26T04:11:10Z",
"ModifiedTime": "2020-12-26T04:11:10Z",
"CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg",
"ClipsParam": "{\"Media1\":\"mediaId\",\"Text1\":\"text\"}"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.