RE: Script to destroy vms

2014-12-19 Thread Simon Fiddaman
Joe, Something like this should work: DISPLAY_NAME="supercoolwebserver" cloudmonkey destroy virtualmachine id=$( cloudmonkey list virtualmachines filter=id displayname=${DISPLAY_NAME} | awk -F'"' '/id/ {print $4}' ) Depending on how you've named your instances, you may need 'name=' or 'displa

Re: Script to destroy vms

2014-12-18 Thread Daan Hoogland
you'll have to write a bit of script to search the id for the vm first. On Thu, Dec 18, 2014 at 7:15 PM, Joe Y. wrote: > Can anyone point me to a script or way of destroying virtual machines via > cli? In cloud monkey I only see destroy by I'd but I'd like to be able to > via display name...thank