Skip to content

Instantly share code, notes, and snippets.

@trisharia
Created May 12, 2018 00:52
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/fcdef5f6ef55493a2109dfcda4b55f29 to your computer and use it in GitHub Desktop.
Save trisharia/fcdef5f6ef55493a2109dfcda4b55f29 to your computer and use it in GitHub Desktop.
Get all the reservation policies of a vRA instance
// VMware vRealize Orchestrator action sample
//
// Get all the reservation policies of a vRA instance
//
// For vRO/VRA 7.0+
//
// Action Inputs:
// cafeHost - vCACCAFE:VCACHost - vRA host
//
// Return type: Array/Any - Collection of vCACCAFE:vCACCAFEReservationPolicy
var client = cafeHost.createReservationClient();
var rsvpService = client.getReservationReservationPolicyService();
var reservationPolicies = rsvpService.getAllReservationPolicies().getContent();
return reservationPolicies;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment