Class LicenseManager


  • @Sample(name="license-manager",
            description="Demonstrates uses of the Licensing API")
    public class LicenseManager
    extends ConnectedVimServiceBase
     LicenseManager
    
     Demonstrates uses of the Licensing API using License Manager
     Reference.
    
     Parameters:
     url         [required] : url of the web service
     username    [required] : username for the authentication
     password    [required] : password for the authentication
     action      [required] : action to be performed
                              [browse|setserver|featureinfo]
     feature     [optional] : Licensed feature e.g. vMotion
     licensekey  [optional] : License key for KL servers
    
     Command Line:
     Display all license information
     run.bat com.vmware.general.LicenseManager --url [webserviceurl]
     --username [username] --password [password] --action[browse]
    
     Retrieve the feature information
     run.bat com.vmware.general.LicenseManager --url [webserviceurl]
     --username [username] --password [password] --action[featureinfo] --feature [drs]
    
     run.bat com.vmware.general.LicenseManager --url [webserviceurl]
     --username [username] --password [password] --action[setserver] --licensekey [key]
     
    • Constructor Detail

      • LicenseManager

        public LicenseManager()
    • Method Detail

      • setAction

        @Option(name="action",
                description="action to be performed: [browse|setserver|featureinfo]")
        public void setAction​(java.lang.String act)
      • setFeature

        @Option(name="feature",
                required=false,
                description="licensed feature")
        public void setFeature​(java.lang.String feature)
      • setLicenseKey

        @Option(name="licensekey",
                required=false,
                description="License key for KL servers")
        public void setLicenseKey​(java.lang.String key)
      • initLicManagerRef

        public void initLicManagerRef()
      • initLicAssignmentManagerRef

        public void initLicAssignmentManagerRef()
                                         throws com.vmware.vim25.RuntimeFaultFaultMsg,
                                                com.vmware.vim25.InvalidPropertyFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg
      • initLicenseAssignmentManagerLicenseAssignments

        public void initLicenseAssignmentManagerLicenseAssignments()
                                                            throws com.vmware.vim25.RuntimeFaultFaultMsg,
                                                                   com.vmware.vim25.InvalidPropertyFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg
      • useLicenseManager

        public void useLicenseManager()
                               throws com.vmware.vim25.RuntimeFaultFaultMsg,
                                      com.vmware.vim25.LicenseEntityNotFoundFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.LicenseEntityNotFoundFaultMsg
      • displayLicenseUsage

        public void displayLicenseUsage()
                                 throws com.vmware.vim25.RuntimeFaultFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
      • setLicKey

        public void setLicKey()
                       throws com.vmware.vim25.RuntimeFaultFaultMsg,
                              com.vmware.vim25.LicenseEntityNotFoundFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.LicenseEntityNotFoundFaultMsg
      • displayFeatureInfo

        public void displayFeatureInfo()
      • print

        public void print​(java.util.List<com.vmware.vim25.LicenseAssignmentManagerLicenseAssignment> licAssignment)
      • action

        @Action
        public void action()
                    throws com.vmware.vim25.RuntimeFaultFaultMsg,
                           com.vmware.vim25.LicenseEntityNotFoundFaultMsg,
                           com.vmware.vim25.InvalidPropertyFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.LicenseEntityNotFoundFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg