Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.