Class ViewProfile


  • @Sample(name="viewprofile",
            description="Display the contents of a storage profile.")
    public class ViewProfile
    extends ConnectedServiceBase
     ViewProfile
    
     This sample prints the contents of 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.ViewProfile --url [webserviceurl]
     --username [username] --password [password]
     --profilename [Storage Profile Name]
     
    • Constructor Detail

      • ViewProfile

        public ViewProfile()
    • Method Detail

      • setProfileName

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

        @Action
        public void viewProfile()
                         throws com.vmware.vim25.RuntimeFaultFaultMsg,
                                com.vmware.pbm.RuntimeFaultFaultMsg,
                                com.vmware.pbm.InvalidArgumentFaultMsg,
                                com.vmware.pbm.PbmDuplicateNameFaultMsg,
                                com.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg,
                                com.vmware.pbm.PbmFaultFaultMsg,
                                com.vmware.vim25.InvalidPropertyFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.pbm.InvalidArgumentFaultMsg
        com.vmware.pbm.PbmDuplicateNameFaultMsg
        com.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg
        com.vmware.pbm.PbmFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg