Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Remove old snapshots but filter by name

$
0
0

Hi. I'd like to use the built in workflow 'Remove Old Snapshots' except I'd like it to filter out snapshots that have a specific phrase in the snapshot name E.G do-not-delete

I thought it would be just a case of editing the scriptable task 'Get snapshots' and changing the line

 

if(days>numbrOfDay){

to something like

if(days>numbrOfDay && ss.name.substr(0,13) != "do-not-delete"){

but for the life of me I can't seem to determine the name attribute and the API reference isn't clear either.

Can anyone point me in the right direction?

Thanks


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>