michael_stefani
Enthusiast
Enthusiast

Resource Action - What Inputs are Passed to workflow?

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,

0 Kudos
2 Replies
mikejtucker
Contributor
Contributor

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 );

0 Kudos
michael_stefani
Enthusiast
Enthusiast

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

vCACVM                 vCAC:VirtualMachine

vCenterVM              VC:VirtualMachine

vCACVMEntitty       vCAC:Entity

vCACHost               vCAC:VCACHost

0 Kudos