VMware {code} Community
RickMeier
Contributor
Contributor

How to retrieve snapshot tree?

I'm trying to retrieve the snapshot tree for a VM (as part of a larger RetrieveProperties request to determine the current state of the VM).

I added "snapshot" to the property list for the request.

The VM has 3 snapshots. "snapshot.currentSnapshot" points correctly to the current snapshot. "snapshot.rootSnapshotList" is an array of VirtualMachineSnapshotTree data objects. There is only 1 instance in the array which is correct. This the "childSnapshotList" is an empty array however, there should be one instance in it.

Since this tree involves Data Objects, Traversal Specs shouldn't be involved, right?

Any idea why I only get the root snapshot of the tree?

TIA,

Rick

Reply
0 Kudos
1 Reply
RickMeier
Contributor
Contributor

Sorry, I'm using gSoap, I just check the XML reply log and see that the data is present, this must be a gSoap issue.

Reply
0 Kudos