Queries a single snapshot template.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • Default: The template is the default one.
  • NotDefault: The template is not the default one.
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:

  • Snapshot
  • DynamicImage
VodTemplateId String 7c49f2f4c09*****69fcd446690

The ID of the template.


Sample requests

&<Common request parameters>

Sample success responses

XML format


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: