All Products
Search
Document Center

GetVodTemplate

Last Updated: Jul 11, 2019

Description

You can call this operation to query a snapshot template.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to GetVodTemplate.
VodTemplateId String Yes The ID of the snapshot template.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
VodTemplateInfo VodTemplateInfo The snapshot template information.

API examples

Sample request

https://vod.cn-shanghai.aliyuncs.com?Action=GetVodTemplate&VodTemplateId=7c49f2f4c0969fcd446690

Sample response

JSON format

{
  "RequestId": "DE7A1F49-41C1-4764-91DF-4CD0C02087DB",
  "VodTemplateInfo": {
    "Name": "test",
    "TemplateType": "Snapshot",
    "Source": "Custom",
    "CreationTime": "2018-11-30T08:05:59:979Z",
    "VodTemplateId": "7c49f2f4c0969fcd446690",
    "IsDefault": "NotDefault",
    "TemplateConfig": "{\"SnapshotConfig\":{\"Count\":10,\"SpecifiedOffsetTime\":0,\"Interval\":1},\"SnapshotType\":\"NormalSnapshot\"}",
    "ModifyTime": "2018-11-30T08:05:59:979Z"
  }
}

SDK examples

We recommend that you use a server SDK to call this operation. For more information about the sample code used to call this operation in various languages, see the following topics: