So in a workflow stub, vCAC:VirtualMachine, VC:VirtualMachine, vCAC:VCACHost, among others are passed to the workflow as inputs and can be used in the workflow. I'm trying to find some documentation as to what parameters are passed when a custom resource action is called. I haven't been able to find any info on this. Any assistance would be appreciated. Thanks,
Michael, have been able to get any information on this. As far as I can tell vc:virtualmachine is passed to a resource action but I can not seem to get that to work. My code is below
I have tried many things from google searches and am a a lose.
vCACVm is passed as an input to the workflow as (VC:VirtualMachine)vCACVm
var OSType = vCACVm.guest.guestFamily; // I get an error on this ine that vCACVm is null
System.log( OSType );
I've never seen anything official that explains what all is passed. I've used the following successfully. Are you just trying to get the OS? If so, using the examples below you should be able to use "var OSType = vCenterVM.guestOS"
My Parameter Type