@Sample(name="sdrs-recommendation",
description="This sample demonstrates how to Run the Storage DRS on a given SDRS cluster and show\nthe list of recommendations generated by SDRS.\n")
public class SDRSRecommendation
extends ConnectedVimServiceBase
This sample demonstrates how to Run the Storage DRS on a given SDRS cluster and show the list of recommendations generated by SDRS. Parameters url [required]: url of the web service. userName [required]: username for the authentication. password [required]: password for the authentication. podame [required]: StoragePod name. Sample Usage: run.bat com.vmware.storage.SDRSRecommendation --url [URLString] --username [User] --password [Password] --podname [podname]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
SDRSRecommendation() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
setPodName(java.lang.String name) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="podname",
description="StoragePod name.")
public void setPodName(java.lang.String name)
@Action
public void run()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
java.lang.reflect.InvocationTargetException,
com.vmware.vim25.InvalidPropertyFaultMsg,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException
com.vmware.vim25.RuntimeFaultFaultMsgjava.lang.reflect.InvocationTargetExceptioncom.vmware.vim25.InvalidPropertyFaultMsgjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessException