($err, $childSnapshotHandle) = SnapshotGetChild($parentSnapshotHandle,
$index);
This function returns the specified child snapshot.
$childSnapshotHandle. A handle to the child snapshot.
use VMware::Vix::Simple; use VMware::Vix::API::Constants;since VMware Workstation 6.0
my $parentSnapshot;
my $childSnapshot;
my $numChildren;
my $err;
my $i;
($err, $numChildren) = SnapshotGetNumChildren($parentSnapshotHandle);
printf "the snapshot has %d child snapshots\n", $numChildren;
for ($i = 0; $i < $numChildren; $i++) {
($err, $childSnapshot) = SnapshotGetChild($parentSnapshotHandle, $i);
}