Get List of vCloud VS Snapshots

To view the list of snapshots, use the following request:

GET /virtual_machines/:id/snapshots.xml
GET /virtual_machines/:id/snapshots.json

XML Request Example

curl -i -X GET -u user:userpass --url http://onapp.test/virtual_machines/3/snapshots.xml

JSON Request Example

curl -i -X GET -u user:userpass --url http://onapp.test/virtual_machines/3/snapshots.xml

Where:

id - ID of the VS the snapshot is associated with

XML Output Example

<virtual_machine_snapshots type="array">
  <virtual_machine_snapshot>
    <created_at type="datetime">2015-03-31T15:17:46+00:00</created_at>
    <id type="integer">1</id>
    <is_built type="boolean">false</is_built>
    <name>New Snapshot</name>
    <updated_at type="datetime">2015-03-31T15:17:46+00:00</updated_at>
    <virtual_machine_id type="integer">3</virtual_machine_id>
  </virtual_machine_snapshot>
</virtual_machine_snapshots>

Where:

created_at -  the date when the record in the database was created

id - the ID of this snapshot

is_built - whether the snapshot was created or not

name - the label of the snapshot

updated_at - the date when this record in database was updated

virtual_machine_id - ID of the VS for which the snapshot was made