rel="snapshot"
sub-collection that behaves similar to other collections, as described in Chapter 7, Common Features.
snapshot
elements that contain the following elements:
Element | Type | Description | Properties |
---|---|---|---|
vm id=
| GUID | The ID and URI of the virtual machine to which this snapshot pertains. |
![]() |
date
|
xsd:dateTime format: YYYY-MM-DDThh:mm:ss
| The date and time at which this snapshot was created. |
![]() |
link rel="prev"
| relationship | A link to the previous snapshot of this virtual machine. |
![]() |
description
element is specified.
PUT
.
<snapshot id="f5288fd5-5178-4b7d-b87c-c01a40e40168" href="/api/vms/5114bb3e-a4e6-44b2-b783-b3eea7d84720/snapshots/ f5288fd5-5178-4b7d-b87c-c01a40e40168"> <description>Virtual Machine 1 - Snapshot A</description> <actions> <link rel="restore" href="/api/vms/5114bb3e-a4e6-44b2-b783-b3eea7d84720/snapshots/ f5288fd5-5178-4b7d-b87c-c01a40e40168/restore"/> </actions> <link rel="prev" href="/api/vms/5114bb3e-a4e6-44b2-b783-b3eea7d84720/snapshots/ ce411b3e-e4e0-4482-8b2f-d1ed998b9130"/> <vm id="5114bb3e-a4e6-44b2-b783-b3eea7d84720" href="/api/vms/5114bb3e-a4e6-44b2-b783-b3eea7d84720"/> <date>2010-08-16T14:24:29</date> </snapshot>
rel="restore"
action link in the snapshot representation.
POST /api/vms/5114bb3e-a4e6-44b2-b783-b3eea7d84720/snapshots/f5288fd5-5178-4b7d-b87c-c01a40e40168/restore HTTP/1.1 Accept: application/xml Content-type: application/xml <action/>