A while ago I pushed this package to flow grab. It’s called Reservation Manager and provides a way to create vRealize Automation reservations based on JSON templates.
It uses the vCACCAFERestClientscripting class provided by the vRA Orchestrator plug-in so requires no HTTP-REST host config and no additional authentication.
Functionality is still pretty basic but the following post outlines the function of each workflow in the package.
Reservation Manager Workflows
Create a reservation template
Generates a JSON template from an existing vRealize Automation Reservation and stores it as a resource element.
Setting the vCACCAFEHost will return a list of reservation names. Choose one from the drop-down list and click submit.
The resulting resource element will be stored under the Reservation Manager resource element category and prefixed with RM to make it easier to search for later.
Create a reservation from template
Creates a new reservation in vRA from the JSON template stored as a resource element.
Select a template by searching for the resource element. Then enter a name and select a business group to associate with the new reservation.
Click submit to create the new reservation.
Currently the only fields that are updated during creation are name and subtenantId. However, you can easily set the value for any field in the template by editing the Prepare Template scriptable task.
The output will be the id of the new reservation.
Delete a reservation
Deletes a reservation by name.
Setting the vCACCAFEHost will return a list of reservation names. Choose the reservation that you want to delete from the drop-down list and click submit.
As I said above, the package can be downloaded from flowgrab.com. Take it for a test drive. While it may not map exactly to what you are doing, it’s good to see how other people do things.
Sharing is caring, right?