Class CreateStorageDRS


  • @Sample(name="create-storage-drs",
            description="This sample demonstrates how to create Storage DRS")
    public class CreateStorageDRS
    extends ConnectedVimServiceBase
     This sample demonstrates how to create Storage DRS
     Parameters:
     url                       [required]: url of the web service.
     username                  [required]: username for the authentication
     password                  [required]: password for the authentication
     dcname                    [required]: DataCenter name.
     sdrsname                  [required]: Name for the new storage pod.
     behavior                  [optional]: Storage DRS behavior, true if automated. It is
                                           manual by default.
     iolatencythreshold        [optional]: int: Storage DRS makes storage migration
                                           recommendations if I/O latency on one (or more)
                                           of the datastores is higher than the specified
                                           threshold. Range is 5-100 ms, default is 15ms
     ioloadimbalancethreshold  [optional]: Storage DRS makes storage migration
                                           recommendations if I/O load imbalance
                                           level is higher than the specified threshold.
                                           Range is 1-100, default is 5
     loadbalinterval           [optional]: Specify the interval that storage DRS runs to
                                           load balance among datastores within a storage
                                           pod. it is 480 by default.
     minutilizationdiff        [optional]: Storage DRS considers making storage migration
                                           recommendations if the difference in space
                                           utilization between the source and  destination
                                           datastores is higher than the specified threshold.
                                           Range 1-50%, default is 5%
     utilizationthreshold      [optional]: Storage DRS makes storage migration
                                           recommendations if space utilization on one
                                           (or more) of the datastores is higher than the
                                           specified threshold. Range 50-100%, default is 80%
     datastore                 [optional]: Name of the datastore to be added in StoragePod.
     Sample usage:
      run.bat com.vmware.storage.CreateStorageDRS --url [URLString] --username [User]
      --password [Password] --dcname [dcname] --sdrsname [sdrsname] --behavior [behavior]
      --iolatencythreshold [iolatencythreshold] --ioloadimbalancethreshold
      [ioloadimbalancethreshold] --loadbalinterval [loadbalinterval] --minutilizationdiff
      [minutilizationdiff] --utilizationthreshold [utilizationthreshold] --datastore [datastore]
     
    • Constructor Detail

      • CreateStorageDRS

        public CreateStorageDRS()
    • Method Detail

      • setDcName

        @Option(name="dcname",
                description="data center name")
        public void setDcName​(java.lang.String dcName)
      • setSdrsname

        @Option(name="sdrsname",
                description="Name for the new storage pod.")
        public void setSdrsname​(java.lang.String sdrsname)
      • setBehavior

        @Option(name="behavior",
                required=false,
                description="Storage DRS behavior: \'true\' if automated. It is manual by default.")
        public void setBehavior​(java.lang.String behavior)
      • setIoLatencyThreshold

        @Option(name="iolatencythreshold",
                required=false,
                description="int: Storage DRS makes storage migration\nrecommendations if I/O latency on one (or more)\nof the datastores is higher than the specified\nthreshold. Range is 5-100 ms, default is 15ms\n")
        public void setIoLatencyThreshold​(java.lang.String ioLatencyThreshold)
      • setIoLoadImbalanceThreshold

        @Option(name="ioloadimbalancethreshold",
                required=false,
                description="\n\tStorage DRS makes storage migration\nrecommendations if I/O load imbalance\nlevel is higher than the specified threshold.\nRange is 1-100, default is 5\n")
        public void setIoLoadImbalanceThreshold​(java.lang.String ioLoadImbalanceThreshold)
      • setLoadBalanceInterval

        @Option(name="loadbalinterval",
                required=false,
                description="Specify the interval that storage DRS runs to\nload balance among datastores within a storage\npod. it is 480 by default.")
        public void setLoadBalanceInterval​(java.lang.String loadBalanceInterval)
      • setMinSpaceUtilizationDifference

        @Option(name="minutilizationdiff",
                required=false,
                description="Storage DRS considers making storage migration\nrecommendations if the difference in space\nutilization between the source and  destination\ndatastores is higher than the specified threshold.\nRange 1-50%, default is 5%")
        public void setMinSpaceUtilizationDifference​(java.lang.String minSpaceUtilizationDifference)
      • setSpaceUtilizationThreshold

        @Option(name="utilizationthreshold",
                required=false,
                description="Storage DRS makes storage migration\nrecommendations if space utilization on one\n(or more) of the datastores is higher than the\nspecified threshold. Range 50-100%, default is 80%")
        public void setSpaceUtilizationThreshold​(java.lang.String spaceUtilizationThreshold)
      • setDsname

        @Option(name="datastore",
                required=false,
                description="Name of the datastore to be added in StoragePod.")
        public void setDsname​(java.lang.String dsname)
      • run

        @Action
        public void run()
                 throws com.vmware.vim25.DuplicateNameFaultMsg,
                        com.vmware.vim25.RuntimeFaultFaultMsg,
                        java.lang.reflect.InvocationTargetException,
                        com.vmware.vim25.InvalidFolderFaultMsg,
                        com.vmware.vim25.InvalidPropertyFaultMsg,
                        java.lang.NoSuchMethodException,
                        com.vmware.vim25.InvalidStateFaultMsg,
                        com.vmware.vim25.InvalidCollectorVersionFaultMsg,
                        com.vmware.vim25.InvalidNameFaultMsg,
                        java.lang.IllegalAccessException
        Throws:
        com.vmware.vim25.DuplicateNameFaultMsg
        com.vmware.vim25.RuntimeFaultFaultMsg
        java.lang.reflect.InvocationTargetException
        com.vmware.vim25.InvalidFolderFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg
        java.lang.NoSuchMethodException
        com.vmware.vim25.InvalidStateFaultMsg
        com.vmware.vim25.InvalidCollectorVersionFaultMsg
        com.vmware.vim25.InvalidNameFaultMsg
        java.lang.IllegalAccessException