Skip to content

Instantly share code, notes, and snippets.

View codyde's full-sized avatar
👊
Smash Them Toggles and Coding Cool Things

Cody De Arkland codyde

👊
Smash Them Toggles and Coding Cool Things
View GitHub Profile
@codyde
codyde / xaas-sample-vra-blog.js
Last active February 12, 2018 03:05
XaaS Workflow Sample - vRealize Automation Blog
if (busGroup === null) {
busGroup = "Humblelab"
}
osCatalogName = "Ubuntu Server 16.04"
var BusinessGroups = vCACCAFEEntitiesFinder.findBusinessGroups(cafeHost , busGroup)
System.log(BusinessGroups)
var BusGroupID = BusinessGroups[0].id;
System.log(BusGroupID)
var CatalogItems = vCACCAFEEntitiesFinder.findCatalogItems(cafeHost, osCatalogName);
@codyde
codyde / workflow.js
Created February 12, 2018 00:01
XaaS OS Blueprint Bootstrap
/* Remember to assign parameters/attributes to correctly return required values. At minimum these are"
busGroup - requesting business group
cafeHost - vRA Cafe Host
osCatalogName - Name of blueprint being requested
*/
// Determine catalog item from business group
var BusinessGroups = vCACCAFEEntitiesFinder.findBusinessGroups(cafeHost , busGroup)
System.log(BusinessGroups)