ModifyTemplate
Modifies template information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vs:ModifyTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The ID of the template. |
323*****998-cn-qingdao |
| Name |
string |
No |
The name of the template. |
录制模板 |
| Description |
string |
No |
The description of the template. |
录制模板 |
| Region |
string |
No |
The region where the Object Storage Service (OSS) bucket is located. |
cn-qingdao |
| OssBucket |
string |
No |
The OSS bucket. |
bucketname |
| OssEndpoint |
string |
No |
The domain name of the OSS bucket. |
oss-cn-qingdao.aliyuncs.com |
| OssFilePrefix |
string |
No |
The prefix of the OSS file. |
oss-prefix |
| Trigger |
string |
No |
The trigger type of the template. The default value is auto. Valid values:
|
auto |
| Interval |
integer |
No |
The operation interval, in seconds. |
3600 |
| Retention |
integer |
No |
The retention period for time shifting, in days. |
3 |
| FileFormat |
string |
No |
The file format for storage. Separate multiple values with commas. Valid values:
Note
Recording in FLV and MP4 formats is not supported in the China (Qingdao) region. |
hls |
| JpgOverwrite |
string |
No |
The storage path for JPG files. This path is used to overwrite snapshots.
|
osspath/snapshot/{AppName}/{StreamName}.jpg |
| JpgSequence |
string |
No |
The storage path for JPG files. This path is used for sequence snapshots.
|
osspath/snapshot/{AppName}/{StreamName}/{UnixTimestamp}.jpg |
| JpgOnDemand |
string |
No |
The storage path for JPG files. This path is used for on-demand snapshots.
|
osspath/snapshot/{AppName}/{StreamName}/{UnixTimestamp}_ondemand.jpg |
| Mp4 |
string |
No |
The storage path for MP4 files.
|
osspath/record/{StreamName}/{EscapedStartTime}_{EscapedEndTime} |
| Flv |
string |
No |
The storage path for FLV files. For information about the format, see the description of the Mp4 parameter. |
osspath/record/{StreamName}/{EscapedStartTime}_{EscapedEndTime} |
| HlsM3u8 |
string |
No |
The storage path for HLS M3U8 files. For information about the format, see the description of the Mp4 parameter. |
osspath/record/{StreamName}/{EscapedStartTime}_{EscapedEndTime} |
| HlsTs |
string |
No |
The storage path for HLS TS files.
|
osspath/record/{StreamName}/{UnixTimestamp}_{Sequence} |
| Callback |
string |
No |
The callback URL that is used after the template is executed. |
http://example.com/callback |
| TransConfigsJSON |
string |
No |
An array of transcoding configurations of the TransConfig type, in a JSON-formatted string. |
[{"Fps":25,"Gop":50,"Height":720,"VideoCodec":"h264","Width":1280,"Name":"sd","VideoBitrate":800}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Id |
string |
The ID of the template. |
323*****998-cn-qingdao |
| RequestId |
string |
The ID of the request. |
BEA5625F-8FCF-48F4-851B-CA63946DA664 |
Examples
Success response
JSON format
{
"Id": "323*****998-cn-qingdao",
"RequestId": "BEA5625F-8FCF-48F4-851B-CA63946DA664"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.