Class FcdCreateFromVslm


  • @Sample(name="fcd-create",
            description="This sample creates a virtual storage object(FCD) from vslm endpoint")
    public class FcdCreateFromVslm
    extends com.vmware.connection.ConnectedVimServiceBase
     FcdCreate
    
     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
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase

        com.vmware.connection.ConnectedVimServiceBase.ConnectionException
    • Field Summary

      • Fields inherited from class com.vmware.connection.ConnectedVimServiceBase

        PROP_ME_NAME, SVC_INST_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init()  
      void run()  
      void setDatastoreName​(java.lang.String datastoreName)  
      void setDeviceName​(java.lang.String deviceName)  
      void setProvisioningType​(java.lang.String provisioningType)  
      void setVStorageObjectName​(java.lang.String vStorageObjectName)  
      void setVStorageObjectSize​(long vStorageObjectSizeInMB)  
      • Methods inherited from class com.vmware.connection.ConnectedVimServiceBase

        basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FcdCreateFromVslm

        public FcdCreateFromVslm()
    • 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