All Products
Search
Document Center

ListVodTemplate

Last Updated: Jul 11, 2019

Description

You can call this operation to query snapshot templates.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to ListVodTemplate.
TemplateType String Yes The type of the template. Valid value: Snapshot.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
VodTemplateInfoList VodTemplateInfo[] The list of snapshot templates.

API examples

Sample request

https://vod.cn-shanghai.aliyuncs.com?Action=ListVodTemplate&TemplateType=Snapshot

Sample response

JSON format

{
  "RequestId": "2A56B75B-B7E6-48D6-AB27-A9BEAA3E50A8",
  "VodTemplateInfoList": [
    {
      "CreationTime": "2018-11-30T08:05:59:979Z",
      "TemplateType": "Snapshot",
      "Name": "test",
      "VodTemplateId": "7c49f2f42b1c0969fcd446690",
      "TemplateConfig": "{\"SnapshotConfig\":{\"Count\":10,\"SpecifiedOffsetTime\":0,\"Interval\":1},\"SnapshotType\":\"NormalSnapshot\"}",
      "IsDefault": "NotDefault",
      "ModifyTime": "2018-11-30T08:05:59:979Z"
    },
    {
      "CreationTime": "2018-11-29T09:58:01:201Z",
      "TemplateType": "Snapshot",
      "Name": "snapshottest",
      "VodTemplateId": "ee014fd5889b67828cae2bbb2b",
      "TemplateConfig": "{\"SnapshotConfig\":{\"Count\":10,\"SpecifiedOffsetTime\":0,\"Interval\":1},\"SnapshotType\":\"NormalSnapshot\"}",
      "IsDefault": "NotDefault",
      "ModifyTime": "2018-11-29T09:58:01:201Z"
    }
  ]
}

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: