Lists the available snapshot templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:ListVodTemplate |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateType |
string |
Yes |
The type of the template. Set the value to Snapshot. |
Snapshot |
| AppId |
string |
No |
The ID of the application. Set the value to app-1000000. For more information, see Multi-application. |
app-**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
2A56B75B-B7E6-48*****27-A9BEAA3E50A8 |
| VodTemplateInfoList |
array<object> |
The list of snapshot template data. |
|
|
object |
|||
| CreationTime |
string |
The time when the template was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2018-11-30T08:05:59:57Z |
| IsDefault |
string |
Indicates whether the template is the default one. Valid values:
|
NotDefault |
| AppId |
string |
The ID of the application. |
app-**** |
| TemplateType |
string |
The type of the template. Valid values:
|
Snapshot |
| VodTemplateId |
string |
The ID of the template. |
7c49f2f42b1c*****0969fcd446690 |
| TemplateConfig |
string |
The detailed configurations of the template in a JSON string. For more information about the data structure, see SnapshotTemplateConfig. |
{\"SnapshotConfig\":{\"Count\":10,\"SpecifiedOffsetTime\":0,\"Interval\":1},\"SnapshotType\":\"NormalSnapshot\"} |
| Name |
string |
The name of the template. |
test |
| ModifyTime |
string |
The time when the template was last modified. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2018-11-30T09:05:59:97Z |
Examples
Success response
JSON format
{
"RequestId": "2A56B75B-B7E6-48*****27-A9BEAA3E50A8",
"VodTemplateInfoList": [
{
"CreationTime": "2018-11-30T08:05:59:57Z",
"IsDefault": "NotDefault",
"AppId": "app-****",
"TemplateType": "Snapshot",
"VodTemplateId": "7c49f2f42b1c*****0969fcd446690",
"TemplateConfig": "{\\\"SnapshotConfig\\\":{\\\"Count\\\":10,\\\"SpecifiedOffsetTime\\\":0,\\\"Interval\\\":1},\\\"SnapshotType\\\":\\\"NormalSnapshot\\\"}",
"Name": "test",
"ModifyTime": "2018-11-30T09:05:59:97Z"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.