Does anyone have experience as to whether using the clone + sysprep + customize workflow and populating all the requested inputs is better/worse than trying to call something from the customizations in vcenter? (I don't have any saved customizations yet so no preference either way at the moment)
I've seen the one thread on here with the code to call the customization spec but I'm planning to ask yes/no for joining domain and for fixed or dhcp address which may be tricky to keep all the needed customizations in vcenter. (I'm also not sure where to reference the customization spec as none of the orchestrator workflows I checked seem to take that as an input)
If I use the orchestrator workflow, I figure I can set the inputs to the workflow based on the user inputs and make others (like timezone) attributes with default values since they won't change.
Anyone have advice either way?
My other issue, which would apply to either method, is how to select the host/cluster when cloning. There doesn't seem to be a clear host/cluster function like there is for getting all datastores for example. Can anyone provide a little sample code to get a list of clusters and/or hosts? I assume there would be a .name property I could use?
Is it easy to pull a list of resource pools by cluster too? If it's a little confusing like host/cluster selection, I would need a little code snippet as well.
And once I have everyone's attention.... I assume that once I get my workflow working, I should be able wrap it with an HTTP REST thingy so another system can trigger a given workflow and pass all the required inputs? I've made all my user questions strings in anticipation of this and I handle conversion to the correct data types.
Thanks for everyone's help