Package com.vmware.fcd
Class FcdRename
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.fcd.FcdRename
-
@Sample(name="fcd-rename", description="This sample renames a virtual storage object.") public class FcdRename extends ConnectedVimServiceBaseFcdRename This sample renames 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 newvstorageobjectname [required] : The new name for the virtual storage object. Command Line: Rename a virtual storage object. run.bat com.vmware.vm.Rename --url [webserviceurl] --username [username] --password [password] --vstorageobjectid [vstorageobjectid] --datastorename [datastorename] --newvstorageobjectname [newvstorageobjectname]
-
-
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 FcdRename()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetDatastoreName(java.lang.String datastoreName)voidsetNewVStorageObjectName(java.lang.String newVStorageObjectName)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 vstorageobject.") public void setVStorageObjectId(java.lang.String vStorageObjectId)- Parameters:
vStorageObjectId- the vStorageObjectId to set
-
setDatastoreName
@Option(name="datastorename", required=true, description="Name of datastore containing the vstorageobject.") public void setDatastoreName(java.lang.String datastoreName)- Parameters:
datastoreName- the datastoreName to set
-
setNewVStorageObjectName
@Option(name="newvstorageobjectname", required=true, description="The new name for the virtual storage object.") public void setNewVStorageObjectName(java.lang.String newVStorageObjectName)- Parameters:
newVStorageObjectName- the newVStorageObjectName to set
-
run
@Action public void run() throws com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.FileFaultFaultMsg, com.vmware.vim25.InvalidDatastoreFaultMsg, com.vmware.vim25.NotFoundFaultMsg- Throws:
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InvalidDatastoreFaultMsgcom.vmware.vim25.NotFoundFaultMsg
-
-