Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 240675

Re: Obtain vApp expiration date

$
0
0

Hi,

You can check the expiration date like this:

 

# Retrieve the corresponding API object ("view")

$appView = $FrankApp | Get-CIView

# Retrieve the Lease settings section (containing information about the storage/runtime leases)

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

# Retrieve the runtime (deployment) expiration date

$leaseSection.DeploymentLeaseExpiration

 

This gives you the exact date/time when the VApp will expire. You can also check the storage expiration date (from $leaseSection.StorageLeaseExpiration). Note that only one of these is available at a time (based on the VApp power state). If the VApp is powered on - you will have DeploymentLeaseExpiration; if the VApp is powered off - you will have StorageLeaseExpiration.


Viewing all articles
Browse latest Browse all 240675

Trending Articles



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