CreateStorageDRS
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]
VMware vSphere Web Services Java Samples
This sample was originally released as a part of vSphere 6.0 under license terms that
contained a provision that disallowed redistribution in source form. In order to encourage
growth of community around VMware samples, these samples are being re-released under a
commercially friendly open source license (BSD 3-Clause). See the file header for details.
The samples themselves are identical to the official release version with the exception of
a changed copyright and license header on each file.
If you wish to run this sample, please download the official SDK from
https://my.vmware.com/group/vmware/get-download?downloadGroup=MNGMTSDK600
and follow the provided instructions.
These samples are provided for reference with no warranty expressed or implied.
#Java#vSphereManagementOSS#vSphereManagementSDK#BSD3-Clause