Get Entities from vcac:virtualmachine object: Use findAllforType (scroll right for full code): Using readModelEntitiesByCustomFilter (scroll right for full code):
It can be useful to create Properties at the Business Group level in vRA. One possible use case is to act as flags for decisions made by vRO. I will show an example of this and a hypothetical use case.
Using a vc:virtualmachine object, retrieve ESXi host and vCenter Cluster objects. Most of the other attributes are easy to find in the API explorer, but these two are ‘hidden’ in the ‘runtime’ attribute.
“archive_days” is the amount of days a vRA resource will be held in vRA after having the lease expire. By default, a VM that is deployed or imported inherits the archive days from the blueprint. Even if the blueprint is modified, the existing VM will hold the original amount of days to hold the vRA…