Package com.vmware.fcd
Class FcdCreateFromVslm
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.fcd.FcdCreateFromVslm
-
@Sample(name="fcd-create", description="This sample creates a virtual storage object(FCD) from vslm endpoint") public class FcdCreateFromVslm extends com.vmware.connection.ConnectedVimServiceBaseFcdCreate This sample creates a virtual storage object Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication vstorageobjectname [required] : Name of the disk datastorename [required] : Name of the datastore vstorageobjectsizeinMB [required] : Size of the disk(in MB) provisioningtype [optional] : Type of provisioning for the disk [thin | eagerZeroedThick | lazyZeroedThick | virtualMode | physicalMode] devicename [optional] : Canonical name of the LUN to use for disk types Command Line: Create a disk (virtual storage object) given vstorageobject name, datastore name and vstorageobject size run.bat com.vmware.fcd.FcdCreateFromVslm --url [webserviceurl] --username [username] --password [password] --vstorageobjectname [vstorageobjectname] --datastorename [datastorename] --vstorageobject [vstorageobject] Create a disk (virtual storage object) given vstorageobject name, datastore names, vstorageobject size and provisioning type of vstorageobject run.bat com.vmware.fcd.FcdCreateFromVslm --url [webserviceurl] --username [username] --password [password] --vstorageobjectname [vstorageobjectname] --datastorename [datastorename] --vstorageobject [vstorageobject] --provisioningtype [provisioningtype] --devicename [devicename] Ex: devicename :: vmhba0:0:0:0
-
-
Constructor Summary
Constructors Constructor Description FcdCreateFromVslm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidrun()voidsetDatastoreName(java.lang.String datastoreName)voidsetDeviceName(java.lang.String deviceName)voidsetProvisioningType(java.lang.String provisioningType)voidsetVStorageObjectName(java.lang.String vStorageObjectName)voidsetVStorageObjectSize(long vStorageObjectSizeInMB)
-
-
-
Method Detail
-
setVStorageObjectName
@Option(name="vstorageobjectname", required=true, description="Name of the Disk.") public void setVStorageObjectName(java.lang.String vStorageObjectName)- Parameters:
vStorageObjectName- the vStorageObjectName to set
-
setDatastoreName
@Option(name="datastorename", required=true, description="Name of datastore.") public void setDatastoreName(java.lang.String datastoreName)- Parameters:
datastoreName- the datastoreName to set
-
setVStorageObjectSize
@Option(name="vstorageobjectsizeinMB", required=true, description="Size of the Disk (in MB)") public void setVStorageObjectSize(long vStorageObjectSizeInMB)- Parameters:
vStorageObjectSizeInMB- the vStorageObjectSizeInMB to set
-
setProvisioningType
@Option(name="provisioningtype", required=false, description="Provisioning Type of the Disk.\n [thin | eagerZeroedThick | lazyZeroedThick | virtualMode | physicalMode]") public void setProvisioningType(java.lang.String provisioningType)- Parameters:
provisioningType- the provisioningType to set
-
setDeviceName
@Option(name="devicename", required=false, description="Canonical name of the LUN to use for RDM provisioning type.") public void setDeviceName(java.lang.String deviceName)- Parameters:
deviceName- the deviceName to set
-
init
@Before public void init()
-
run
@Action public void run() throws java.lang.Exception- Throws:
java.lang.Exception
-
-