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?