Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vCACBlueprint.provision() examples anyone?

$
0
0

I am trying to create some workflows that I can use to front end the IaaS blueprints since we can't seem to coax it into doing what we want with the interface.  I am struggling with how to use vCACBlueprint.provision() .  From the scriptable object parameters I can't quite figure out how to pass in values for the custom properties I have added.  Things like hostname, location, and a few other totally custom properties I have created.  If anyone has a good example I would appreciate it.  The parameters are:

 

provisioningGroup (vCACProvisioningGroup) - Self explanatory

 

vmProperties (Any) - I would expect this to be a properties type but looking at the "Provision a virtual machine from a blueprint" workflow it looks like you just create an object and pass that in?  It also looks like this only covers the non custom properties.

 

customProperties (Array/string) - So I guess this is where you would set the custom properties but I'm not sure how to do this.  I'd expect it to be a properties type as well.  Do I need to know the order of the custom properties?  There are a ton of them on the blueprints since we use the workflow stub call outs.  I'd expect to use a properties type and specify one property for each custom property I would want to set.  Like prop.put("hostname","somehostname") to set the custom property "hostname" to the value "somehostname"

 

headers (Properties) - it says a map of http headers.  I am sure this makes sense to those very familiar with vCAC but i'm not even sure why I would want to do this or what headers I'd be sending.  Luckily this is optional.

 

runAsync (boolean) - another which is obvious


Viewing all articles
Browse latest Browse all 6251

Trending Articles