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

Snapshot information from vCO

$
0
0

Hello,

 

I am migrating some reports generated from PowerCli to vCO, this one gets all the snapshot information:

 

$VMsWithSnaps = @(Get-VM | Get-Snapshot | Select vm,name,sizemb)

 

In vCO I have not find a way to obtain the snapshot size:

 

if(VM.snapshot != null)

{

  var tree = VM.snapshot.rootSnapshotList;

  System.log(VM.name+" "+tree.length);

  for each(var branch in tree) {

       System.log(branch.name+" "+branch.description);

  }

}

 

I can get the snapshot from the VM object and then get the description and some data but not the size. For some reason the the rootSnapshot list has one element, so I can only get the data for the current snap.

 

I appreciate any feedback on how to obtain this information. Thanks.

 

 

Juan.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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