Get List of vCloud VS Snapshots
To view a list of snapshots, use the following request:
1
2
| GET /virtual_machines/:id/snapshots.xml
GET /virtual_machines/:id/snapshots.json
|
XML Request Example
1
| curl -i -X GET -u user:userpass --url http://onapp.test/virtual_machines/3/snapshots.xml
|
JSON Request Example
1
| 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
1
2
3
4
5
6
7
8
9
10
| <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