Skip to content

Instantly share code, notes, and snippets.

@trisharia
Last active May 12, 2018 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trisharia/8010d245e5d552dd3be1ceadb598ae46 to your computer and use it in GitHub Desktop.
Save trisharia/8010d245e5d552dd3be1ceadb598ae46 to your computer and use it in GitHub Desktop.
Get the compute resource of a vRA reservation (IaaS)
// 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