@Sample(name="checkcompliance",
description="Check compliance of the VM\'s associated with a storage profile.")
public class CheckCompliance
extends ConnectedServiceBase
CheckCompliance This sample checks the compliance of the VM's associated with a storage profile. Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication profilename [required] : Name of the storage profile Command Line: run.bat com.vmware.spbm.samples.CheckCompliance --url [webserviceurl] --username [username] --password [password] --profilename [storage profile]
| Constructor and Description |
|---|
CheckCompliance() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkProfileCompliance()
This method checks the compliance of entities against a profile.
|
void |
setProfileName(java.lang.String profileName) |
setConnection, start, stop@Action
public void checkProfileCompliance()
throws com.vmware.pbm.InvalidArgumentFaultMsg,
com.vmware.pbm.RuntimeFaultFaultMsg,
com.vmware.pbm.PbmFaultFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.pbm.InvalidArgumentFaultMsgcom.vmware.pbm.RuntimeFaultFaultMsgcom.vmware.pbm.PbmFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsg@Option(name="profilename",
description="name of the storage profile")
public void setProfileName(java.lang.String profileName)