Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

vCD Powercli question....digging through API

$
0
0

Does anyone know how to extract the DateCreated for vApps and VMs via PowerCLI? The dates are readily available in the DB in dbo.vms, but i can't seem to dig it out via PowerCLI.

 

I've found some excellent examples of other folks digging data via vCD api:

 

$appview = Get-CIView -CIObject $vapp

  $leaseSection = $appView.Section | where {$_ -is [VMware.VimAutomation.Cloud.Views.LeaseSettingsSection]}

  $created = $appView.Section | where {$_ -is [VMware.VimAutomation.Cloud.Views.LeaseSettingsSection]}

 

And believe this object contains the CreateDate for the VM:

VMware vCloud Director Documentation Center

 

Thanks in advance


Viewing all articles
Browse latest Browse all 13334

Trending Articles



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