VMware {code} Community
john_ludlow
Contributor
Contributor

COM API question: List info for all snapshots in a VM

Hi all,

I'm pretty new at the VMWare APIs so excuse me if the answer to this is obvious.

I've been playing about with the VMWare Vix API a little, using VMWare Workstation 6.0.5 as a host, and managed to open a VM and get a snapshot object using the COM API (C# developer here!), but that object does not seem to have any useful information such as the name of the snapshot, the description, or the date and time it was taken.

Is there any way to get this information using the COM APIs? I did find a script which claimed to do this but it doesn't work on my system - possibly because it's designed to work with the server products and I have Workstation. Are there any decent C# examples or whatnot out there? (I'll take powershell though, even VBScript!)

Thanks in advance

John

0 Kudos
4 Replies
stumpr
Virtuoso
Virtuoso

You might want to repost this in the Legacy API forum. I haven't even seen or used those APIs in a few years myself. Smiley Sad

Reuben Stump | http://www.virtuin.com | @ReubenStump
john_ludlow
Contributor
Contributor

Thanks stumpr. Didn't see the legacy APIs.

If these APIs are considered Legacy, are there other alternatives for VMWare Workstation 6.0.5 and C#? C# is a common language these days, and 6.0.5 isn't that old...

Thanks again

John

Edit: Actually, I'll mark this as answered so it doesn't cause confusion. New thread at http://communities.vmware.com/thread/179366

0 Kudos
stumpr
Virtuoso
Virtuoso

Sorry I was thinking of the old COM API.

I think the VIX forum is your best bet. http://communities.vmware.com/community/developer/automationapi

Sorry didn't catch that sooner!

Reuben Stump | http://www.virtuin.com | @ReubenStump
john_ludlow
Contributor
Contributor

Ok, not a problem... We'll get there!

Thread moved to http://communities.vmware.com/thread/179374 then Smiley Happy

0 Kudos