Queries the URLs of materials associated with an advanced template for use by the advanced template editor. The URLs expire in 30 minutes. FileList is an array of materials that you want to query. If you do not specify this parameter, the URLs of all materials are returned. A maximum of 400 URLs can be returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetTemplateMaterials |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| FileList |
string |
No |
The materials that you want to query. |
["music.mp3","config.json","assets/1.jpg"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| MaterialUrls |
string |
The URLs of the associated materials. |
{"music.mp3":"https://bucket.oss-cn-shanghai.aliyuncs.com/music.mp3?sign=xxx","config.json":"https://bucket.oss-cn-shanghai.aliyuncs.com/config.json?sign=xxx","assets/1.jpg":"https://bucket.oss-cn-shanghai.aliyuncs.com/assets/1.jpg?sign=xxx"} |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"MaterialUrls": "{\"music.mp3\":\"https://bucket.oss-cn-shanghai.aliyuncs.com/music.mp3?sign=xxx\",\"config.json\":\"https://bucket.oss-cn-shanghai.aliyuncs.com/config.json?sign=xxx\",\"assets/1.jpg\":\"https://bucket.oss-cn-shanghai.aliyuncs.com/assets/1.jpg?sign=xxx\"}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.