Package com.vmware.fcd
Class FcdDetachFromVM
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.fcd.FcdDetachFromVM
-
@Sample(name="fcd-detachfromvm", description="This sample detaches a currently attached virtual storage object(FCD) from the given virtual machine.") public class FcdDetachFromVM extends ConnectedVimServiceBaseFcdDetachFromVM 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]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description FcdDetachFromVM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetVmName(java.lang.String vmName)voidsetVStorageObjectId(java.lang.String vStorageObjectId)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setVStorageObjectId
@Option(name="vstorageobjectid", required=true, description="Uuid of the disk.") public void setVStorageObjectId(java.lang.String vStorageObjectId)- Parameters:
vStorageObjectId- the vStorageObjectId to set
-
setVmName
@Option(name="vmname", required=true, description="Name of virtual machine.") public void setVmName(java.lang.String vmName)- Parameters:
vmName- the vmName to set
-
run
@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- Throws:
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.NotFoundFaultMsgcom.vmware.vim25.VmConfigFaultFaultMsg
-
-