Package com.vmware.general
Class Delete
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.general.Delete
-
@Sample(name="delete", description="This sample deletes the specified managed entity from the inventory tree The managed entity can be a virtual machine, ClusterComputeResource or a Folder.") public class Delete extends ConnectedVimServiceBaseDelete This sample deletes the specified managed entity from the inventory tree The managed entity can be a virtual machine, ClusterComputeResource or a Folder Parameters url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication entityname [required] : Virtual Machine|ClusterComputeResource|Folder Command Line: To delete a folder named 'testFolder' run.bat com.vmware.general.Delete --url [webserviceurl] --username [username] --password [password] --entityname [testFolder] To delete a datacenter named myData run.bat com.vmware.general.Delete --url [webserviceurl] --username [username] --password [password] --entityname [myData]
-
-
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 Delete()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteManagedEntity()voidsetManagedEntityName(java.lang.String name)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setManagedEntityName
@Option(name="entityname", description="name of entity to delete") public void setManagedEntityName(java.lang.String name)
-
deleteManagedEntity
@Action public void deleteManagedEntity() throws com.vmware.vim25.RuntimeFaultFaultMsg, java.rmi.RemoteException, com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.VimFaultFaultMsg, com.vmware.vim25.InvalidCollectorVersionFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgjava.rmi.RemoteExceptioncom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.VimFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsg
-
-