@Sample(name="fcd-delete",
description="This sample deletes a virtual storage object.")
public class FcdDelete
extends ConnectedVimServiceBase
FcdDelete
This sample deletes a given virtual storage object.
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 vstorageobject
datastorename [required] : Name of the datastore which contains
the virtual storage object
Command Line:
Attach a given virtual storage object to the given virtual machine.
run.bat com.vmware.vm.FcdAttachToVM --url [webserviceurl]
--username [username] --password [password]
--vstorageobjectid [vstorageobjectid] --datastorename [datastorename]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
FcdDelete() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setDatastoreName(java.lang.String datastoreName) |
void |
setVStorageObjectId(java.lang.String vStorageObjectId) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vstorageobjectid",
required=true,
description="Uuid of the vstorageobject.")
public void setVStorageObjectId(java.lang.String vStorageObjectId)
vStorageObjectId - the vStorageObjectId to set@Option(name="datastorename",
required=true,
description="Name of datastore containing the vstorageobject.")
public void setDatastoreName(java.lang.String datastoreName)
datastoreName - the datastoreName to set@Action
public void run()
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.FileFaultFaultMsg,
com.vmware.vim25.InvalidDatastoreFaultMsg,
com.vmware.vim25.InvalidStateFaultMsg,
com.vmware.vim25.NotFoundFaultMsg,
com.vmware.vim25.TaskInProgressFaultMsg,
com.vmware.vim25.InvalidCollectorVersionFaultMsg
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InvalidDatastoreFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.NotFoundFaultMsgcom.vmware.vim25.TaskInProgressFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsg