Package com.vmware.fcd
Class FcdRenameExtendInflateDeleteOperations
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.fcd.FcdRenameExtendInflateDeleteOperations
-
@Sample(name="fcd-renameextendinflatedeleteoperations", description="This sample renamnes an FCD,extends capacity of FCD, inflates a sparse or thin-provisioned FCD up to the full size and deletes FCD") public class FcdRenameExtendInflateDeleteOperations extends com.vmware.connection.ConnectedVimServiceBaseFcdRenameExtendInflateDeleteOperations This sample executes below operations on a given VStorageObject from vslm: 1. Rename a given virtual storage object. 2. Extend a virtual storage object capacity. 3. Inflate a sparse or thin-provisioned virtual disk up to the full size. 4. Delete a given virtual storage object. Pre-requisite : 1. Existing VStorageObject ID 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 newvstorageobjectname [required] : The new name for the virtual storage object. newcapacityinmb [required] : The new capacity of the virtual disk in MB, which should be greater than the original disk size. Command Line: Rename a virtual storage object. run.bat com.vmware.fcd.FcdRenameExtendInflateDeleteOperations --url [webserviceurl] --username [username] --password [password] --vstorageobjectid [vstorageobjectid] --newvstorageobjectname [newvstorageobjectname] --newcapacityinmb [newcapacityinmb]
-
-
Constructor Summary
Constructors Constructor Description FcdRenameExtendInflateDeleteOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetNewCapacityInMB(long newCapacityInMB)voidsetNewVStorageObjectName(java.lang.String newVStorageObjectName)voidsetVStorageObjectId(java.lang.String vStorageObjectId)
-
-
-
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
-
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
-
setNewCapacityInMB
@Option(name="newcapacityinmb", required=true, description="The new capacity of the virtual disk in MB,which should be greater than the original disk size.") public void setNewCapacityInMB(long newCapacityInMB)- Parameters:
newCapacityInMB- the newCapacityInMB to set.
-
run
@Action public void run() throws java.lang.Exception- Throws:
java.lang.Exception
-
-