Class CheckCompliance


  • @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 Detail

      • CheckCompliance

        public CheckCompliance()
    • 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.InvalidPropertyFaultMsg
        This method checks the compliance of entities against a profile.
        Throws:
        com.vmware.pbm.InvalidArgumentFaultMsg
        com.vmware.pbm.RuntimeFaultFaultMsg
        com.vmware.pbm.PbmFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg
        com.vmware.vim25.RuntimeFaultFaultMsg
      • setProfileName

        @Option(name="profilename",
                description="name of the storage profile")
        public void setProfileName​(java.lang.String profileName)