Category: VMware
-
Useful vRO JavaScript code Snippets
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.
-
Change the Archive Days in CAFE
“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…
-
Delete an Entitlement
At the time of this writing, there is no built in vRO method to delete an entitlement. I wrote this action to meet that need for a customized approval and governance process
-
Force a vRA Data Collection
-
Sample vRO Code to call HP Service Manager 9
This example code assumes that you have a vRO HTTP host called hpsmRESTHOST in your inventory.