VMware {code} Community
rathi27akash
Enthusiast
Enthusiast

Can we create Tasks for Custom objects using vsphere-web client

we are developing a plugin which is using our own custom objects, which does not uses ESXI or vcenter attributes. We are able to create Tasks when we perform (custom) operations on those custom objects, but currently target type is set to Localhost. Is their a better way to define target type for the custom object.

Rathi.
0 Kudos
1 Reply
Peter_Ivanov
VMware Employee
VMware Employee

Hi Rathi,

Can you give more information?

I assume that you are creating Tasks using the vCenter API. Is this correct?

TaskInfo TaskManager#createTask(ManagedObjectReference obj, ...)

And you want to know what ManagedObjectReference to pass to this API? Is this your question?

0 Kudos