@Sample(name="fcd-detachfromvm",
description="This sample detaches a currently attached virtual storage object(FCD) from the given virtual machine.")
public class FcdDetachFromVM
extends ConnectedVimServiceBase
FcdDetachFromVM This sample detaches a given virtual storage object from the given virtual machine. Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vstorageobjectid [required] : Uuid of the disk vmname [required] : Name of the virtual machine Command Line: Detach a currently attached virtual storage object from the given virtual machine. run.bat com.vmware.vm.FcdDetachFromVM --url [webserviceurl] --username [username] --password [password] --vstorageobjectid [vstorageobjectid] --vmname [vmname]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
FcdDetachFromVM() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setVmName(java.lang.String vmName) |
void |
setVStorageObjectId(java.lang.String vStorageObjectId) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vstorageobjectid",
required=true,
description="Uuid of the disk.")
public void setVStorageObjectId(java.lang.String vStorageObjectId)
vStorageObjectId - the vStorageObjectId to set@Option(name="vmname",
required=true,
description="Name of virtual machine.")
public void setVmName(java.lang.String vmName)
vmName - the vmName to set@Action
public void run()
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidCollectorVersionFaultMsg,
com.vmware.vim25.FileFaultFaultMsg,
com.vmware.vim25.InvalidStateFaultMsg,
com.vmware.vim25.NotFoundFaultMsg,
com.vmware.vim25.VmConfigFaultFaultMsg
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.NotFoundFaultMsgcom.vmware.vim25.VmConfigFaultFaultMsg