Queries a single snapshot template.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetVodTemplate |
The operation that you want to perform. Set the value to GetVodTemplate. |
VodTemplateId | String | Yes | 7c49f2f4c0969*****fcd446690 |
The ID of the snapshot template. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | DE7A1F49-41C1-47*****DF-4CD0C02087DB |
The ID of the request. |
VodTemplateInfo | Struct |
The information about the snapshot template. |
|
CreationTime | String | 2018-11-30T08:05:59:57Z |
The time when the template was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
IsDefault | String | NotDefault |
Indicates whether the template is the default one. Valid values:
|
ModifyTime | String | 2018-11-30T09:05:59:57Z |
The time when the template was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
Name | String | test |
The name of the template. |
TemplateConfig | String | {\"SnapshotConfig\":{\"Count\":10,\"SpecifiedOffsetTime\":0,\"Interval\":1},\"SnapshotType\":\"NormalSnapshot\"} |
The detailed configurations of the template. The value is a JSON-formatted string. For more information about the data structure, see the "SnapshotTemplateConfig" section of the Media processing parameters topic. |
TemplateType | String | Snapshot |
The type of the template. Valid values:
|
VodTemplateId | String | 7c49f2f4c09*****69fcd446690 |
The ID of the template. |
Examples
Sample requests
https://vod.{ApiRegion}.aliyuncs.com/?Action=GetVodTemplate
&VodTemplateId=7c49f2f4c0969*****fcd446690
&<Common request parameters>
Sample success responses
XML
format
<GetVodTemplateResponse>
<RequestId>DE7A1F49-41C1-47*****DF-4CD0C02087DB</RequestId>
<VodTemplateInfo>
<Name>test</Name>
<TemplateType>Snapshot</TemplateType>
<Source>Custom</Source>
<CreationTime>2018-11-30T08:05:59:57Z</CreationTime>
<VodTemplateId>7c49f2f4c09*****69fcd446690</VodTemplateId>
<IsDefault>NotDefault</IsDefault>
<TemplateConfig>{"SnapshotConfig":{"Count":10,"SpecifiedOffsetTime":0,"Interval":1},"SnapshotType":"NormalSnapshot"}</TemplateConfig>
<ModifyTime>2018-11-30T09:05:59:57Z</ModifyTime>
</VodTemplateInfo>
</GetVodTemplateResponse>
JSON
format
{
"RequestId": "DE7A1F49-41C1-47*****DF-4CD0C02087DB",
"VodTemplateInfo": {
"Name": "test",
"TemplateType": "Snapshot",
"Source": "Custom",
"CreationTime": "2018-11-30T08:05:59:57Z",
"VodTemplateId": "7c49f2f4c09*****69fcd446690",
"IsDefault": "NotDefault",
"TemplateConfig": "{\"SnapshotConfig\":{\"Count\":10,\"SpecifiedOffsetTime\":0,\"Interval\":1},\"SnapshotType\":\"NormalSnapshot\"}",
"ModifyTime": "2018-11-30T09:05:59:57Z"
}
}
Error codes
For a list of error codes, visit the API Error Center.
SDK examples
We recommend that you use server SDKs to call this operation. You can view the sample code of different languages to call this operation by clicking the following links: