TheVMinator
Expert
Expert

Reporting on snapshots

Jump to solution

What is the easiest way to find all snapshots older than a week and send out an email notification using Orchestrator?

0 Kudos
1 Solution

Accepted Solutions
Jalapeno420
Enthusiast
Enthusiast

Here is something a put together a while back.  It may need some tweeking but may point you in the direction you want.

View solution in original post

0 Kudos
6 Replies
ChristianWehner
VMware Employee
VMware Employee

Hi VMinator,

there is a method called: VcPlugin.getAllVirtualMachineSnapshots() which returns you all available snapshots. Next step, loop through all this snapshots and check the snapshot.createTime if it is older than one week build a string with VM and snapshot information and send it per mail (Object: EmailMessage).

Best regards,

Chris

TheVMinator
Expert
Expert

Okay thank you. Is there also a built-in workflow that can do the same thing?

0 Kudos
Jalapeno420
Enthusiast
Enthusiast

Here is something a put together a while back.  It may need some tweeking but may point you in the direction you want.

0 Kudos
grace27
Enthusiast
Enthusiast
TheVMinator
Expert
Expert

Christian - thanks for input

0 Kudos
TheVMinator
Expert
Expert

Jalapeno - thanks for Workflow...

0 Kudos