Package com.vmware.spbm.samples
Class CheckCompliance
- java.lang.Object
-
- com.vmware.spbm.connection.ConnectedServiceBase
-
- com.vmware.spbm.samples.CheckCompliance
-
@Sample(name="checkcompliance", description="Check compliance of the VM\'s associated with a storage profile.") public class CheckCompliance extends ConnectedServiceBaseCheckCompliance 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 Summary
Constructors Constructor Description CheckCompliance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckProfileCompliance()This method checks the compliance of entities against a profile.voidsetProfileName(java.lang.String profileName)-
Methods inherited from class com.vmware.spbm.connection.ConnectedServiceBase
setConnection, start, stop
-
-
-
-
Method Detail
-
checkProfileCompliance
@Action public void checkProfileCompliance() throws com.vmware.pbm.InvalidArgumentFaultMsg, com.vmware.pbm.RuntimeFaultFaultMsg, com.vmware.pbm.PbmFaultFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsgThis method checks the compliance of entities against a profile.- Throws:
com.vmware.pbm.InvalidArgumentFaultMsgcom.vmware.pbm.RuntimeFaultFaultMsgcom.vmware.pbm.PbmFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsg
-
setProfileName
@Option(name="profilename", description="name of the storage profile") public void setProfileName(java.lang.String profileName)
-
-