Skip to content

Instantly share code, notes, and snippets.

@trisharia
Created May 12, 2018 00:53
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/c3d0b20e3208ba0c3a8abd3ae08ee426 to your computer and use it in GitHub Desktop.
Save trisharia/c3d0b20e3208ba0c3a8abd3ae08ee426 to your computer and use it in GitHub Desktop.
Get the name of a vRA reservation policy given its ID
// VMware vRealize Orchestrator action sample
//
// Get the name of a vRA reservation policy given its ID
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// cafeHost - vCACCAFE:VCACHost - vRA host
// reservationPolicyId - string - Reservation policy ID
//
// Return type: string - Reservation policy name, or null if no match is found
var reservationPolicy = vCACCAFEEntitiesFinder.getReservationPolicy(cafeHost, reservationPolicyId);
if (!reservationPolicy) return null;
return reservationPolicy.name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment