@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]
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
LicenseManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
action() |
void |
displayFeatureInfo() |
void |
displayLicenseUsage() |
void |
initLicAssignmentManagerRef() |
void |
initLicenseAssignmentManagerLicenseAssignments() |
void |
initLicManagerRef() |
void |
print(java.util.List<com.vmware.vim25.LicenseAssignmentManagerLicenseAssignment> licAssignment) |
void |
setAction(java.lang.String act) |
void |
setFeature(java.lang.String feature) |
void |
setLicenseKey(java.lang.String key) |
void |
setLicKey() |
void |
useLicenseManager() |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="action",
description="action to be performed: [browse|setserver|featureinfo]")
public void setAction(java.lang.String act)
@Option(name="feature",
required=false,
description="licensed feature")
public void setFeature(java.lang.String feature)
@Option(name="licensekey",
required=false,
description="License key for KL servers")
public void setLicenseKey(java.lang.String key)
public void initLicManagerRef()
public void initLicAssignmentManagerRef()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic void initLicenseAssignmentManagerLicenseAssignments()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic void useLicenseManager()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.LicenseEntityNotFoundFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.LicenseEntityNotFoundFaultMsgpublic void displayLicenseUsage()
throws com.vmware.vim25.RuntimeFaultFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgpublic void setLicKey()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.LicenseEntityNotFoundFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.LicenseEntityNotFoundFaultMsgpublic void displayFeatureInfo()
public void print(java.util.List<com.vmware.vim25.LicenseAssignmentManagerLicenseAssignment> licAssignment)
@Action
public void action()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.LicenseEntityNotFoundFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.LicenseEntityNotFoundFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg