VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

Reporting on snapshots

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
Jump to solution

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
Jump to solution

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
Jump to solution

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

0 Kudos
Jalapeno420
Enthusiast
Enthusiast
Jump to solution

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
Jump to solution

TheVMinator
Expert
Expert
Jump to solution

Christian - thanks for input

0 Kudos
TheVMinator
Expert
Expert
Jump to solution

Jalapeno - thanks for Workflow...

0 Kudos