ListTemplates
Lists templates that meet specified conditions. You can query templates by status, creation source, and other information.
Operation description
Template Factory encapsulates editing and synthesis timelines. You can define commonly used timelines as templates. When similar requirements arise, you only need to pass key parameters and media assets to produce videos.
To use standard templates, refer to Quick start for standard templates.
To use advanced templates, refer to Create and use advanced templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListTemplates |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
No |
The page number. Default value: 1. Valid values:
|
1 |
| Status |
string |
No |
The number of entries per page. Default value: 20. Maximum value: 100. Valid values:
|
20 |
| CreateSource |
string |
No |
The templatetype. Valid values:
|
Timeline |
| Keyword |
string |
No |
The template status. |
Available |
| SortType |
string |
No |
The creation source. Valid values:
|
OpenAPI |
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 that meet the request conditions. |
100 |
| Templates |
array<object> |
The list of templates. |
|
|
object |
The template information. |
||
| TemplateId |
string |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| Name |
string |
The template name. |
Cloud editing template |
| Type |
string |
The templatetype. Valid values:
|
Timeline |
| Config |
string |
The template configuration. |
Refer to Timeline template configuration details |
| PreviewMedia |
string |
The preview media. |
****20b48fb04483915d4f2cd8ac**** |
| Status |
string |
The template status. Valid values:
|
Available |
| CreateSource |
string |
The creation source. Valid values:
|
OpenAPI |
| ModifiedSource |
string |
The modification source. Valid values:
|
OpenAPI |
| PreviewMediaStatus |
string |
The preview media status. Valid values:
|
Normal |
| CreationTime |
string |
The creation time. The time is in ISO 8601 format and uses UTC (ending with Z). |
2020-12-26T04:11:10Z |
| ModifiedTime |
string |
The modification time. The time is in ISO 8601 format and uses UTC (ending with Z). |
2020-12-26T04:11:10Z |
| CoverURL |
string |
The cover URL. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg |
| ClipsParam |
string |
The editing 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 to Timeline template configuration 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.