Last active
May 12, 2018 01:00
-
-
Save trisharia/8010d245e5d552dd3be1ceadb598ae46 to your computer and use it in GitHub Desktop.
Get the compute resource of a vRA reservation (IaaS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Get the compute resource of a vRA reservation (IaaS) | |
// | |
// For vRO/VRA 7.0+ | |
// | |
// Action Inputs: | |
// vcacHost - vCAC:VCACHost - vRA IaaS Host | |
// reservationEntity - vCAC:Entity - Reservation entity | |
// | |
// Return type: vCAC:Entity - Compute resource entity | |
var computeResourceEntity; | |
var linkEntities = reservationEntity.getLink(vcacHost, "Host"); | |
if (linkEntities && linkEntities.length !== 0) { | |
computeResourceEntity = linkEntities[0]; | |
} | |
return computeResourceEntity; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment