VMware {code} Community
Tichu78
Contributor
Contributor

HowTo create and start task from client?

Hi,

I want to start a task from a client to attach and detach a scsi lun from esxi host. I found this method:

HostStorageSystem.AttachScsiLun

How can I use this method from the client?

There is a method VimPortType.createTask(_this, obj, taskTypeId, initiatedBy, cancelable, parentTaskKey) in the given Java API (based on vim 2.5 and vSphere API 4.0)

Is it possible to start the task with this call? What means obj and taskTypeId?

Do you have any code samples or hints how to create and start a task from the client.

Thx in advance Smiley Happy

Regards,

Sven

0 Kudos
1 Reply
acwang27
Contributor
Contributor

I have the similar question. Anybody could help us here?

Thanks in advance!

0 Kudos