|
| Local Properties | Local Methods | |
| Managed Object Types | Data Object Types | All Properties | All Methods |
Feature information includes the state and the cost unit. A feature can be in in one of three states: enabled, disabled, and optional. A feature in the enabled state is implicitly enabled; a feature in the disabled state is implicitly disabled. A feature in the optional state can be enabled or disabled using the appropriate operation below.
The cost unit determines the measurement by which licenses are reserved. For example, "cpuPackage" specifies that one license is reserved per each CPU; "cpuCore" specifies that one license is reserved per each CPU core in each CPU; "server" specifies that one license is reserved per server.
When you enable a feature, one or more licenses are reserved based on the cost unit value. For example, when you enable the DRS feature for 32 CPU packages (cost unit = "cpuPackage"), across multiple ESX Server hosts, if there are not enough licenses based on the cost unit, the feature is not enabled.
Licensing data is acquired from a single source, either a remote license server or a local source. You can configure this using an operation in this managed object.
Properties
| Name | Type | Description |
|---|---|---|
| featureInfo* | LicenseFeatureInfo[] | The list of features that can be licensed. |
| source | LicenseSource | The source of this licenseManager. Acceptable values are ServedSource or LocalSource. |
| sourceAvailable | xsd:boolean | Current state of the license source. License sources that are LocalSource are always available. |
Methods
| Methods defined in this Managed Object |
|---|
| CheckLicenseFeature, ConfigureLicenseSource, DisableFeature, EnableFeature, QueryLicenseSourceAvailability, QueryLicenseUsage, SetLicenseEdition |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem |
Host to act on if LicenseManager is not on a host. See LicenseManagerLicenseKey |
| featureKey | xsd:string |
Name of the feature to enable. See LicenseManagerLicenseKey |
Return Value
| Type | Description |
|---|---|
| xsd:boolean | Returns true if the feature is enabled and false if it is not. |
Faults
| Type | Description |
|---|---|
| InvalidArgument | Thrown if a feature name is not found. See LicenseManagerLicenseKey |
| InvalidState | Thrown if the feature cannot be supported on the platform, potentially because the hardware configuration does not support it. See LicenseManagerLicenseKey |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
This changes the licensing source to be either served or local. Before changing the license source location, the API checks the number of licenses available at the new potential source to ensure there are at least as many licenses there as have been issued by the current source. If there are an equal or greater number of licenses at the new source, all licenses on the current source are released and then reacquired from the new source. If there are not enough licenses available on the new source to reissue all licenses, the operation fails.
This is used to configure the license source on an individual host. When the API is called directly on a host, the host parameter is optional. When called through VirtualCenter, the host argument must be specified.
Note: This method is supported on the LicenseManager for VirtualCenter, but VirtualCenter only supports a served source.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem | Host for which the license manager should be reconfigured. |
| licenseSource | LicenseSource |
ServedSource or LocalSource.
|
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| CannotAccessLocalSource | Thrown if the local source cannot be accessed. |
| InvalidLicense | Thrown if the new license source is LocalLicenseSource and the license file is not valid. |
| LicenseServerUnavailable | Thrown if the license server is unreachable. |
| NotEnoughLicenses | Thrown if the new license source does not have enough licenses. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem |
Host to act on if LicenseManager is not on a host. See LicenseManagerLicenseKey |
| featureKey | xsd:string |
key of the feature to disable. See LicenseManagerLicenseKey |
Return Value
| Type | Description |
|---|---|
| xsd:boolean | Returns true if the feature was disabled and false if not. |
Faults
| Type | Description |
|---|---|
| InvalidArgument | Thrown if a feature name is not found or it is not optional. See LicenseManagerLicenseKey |
| InvalidState | Thrown if the feature is in use. See LicenseManagerLicenseKey |
| LicenseServerUnavailable | Thrown if the license server is unavailable. See LicenseManagerLicenseKey |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem |
Host to act on if LicenseManager is not on a host. See LicenseManagerLicenseKey |
| featureKey | xsd:string |
Name of the feature to enable. See LicenseManagerLicenseKey |
Return Value
| Type | Description |
|---|---|
| xsd:boolean | Returns true if enabling the feature was successful, false otherwise. |
Faults
| Type | Description |
|---|---|
| InvalidArgument | Thrown if a feature name is not found or it is not optional. See LicenseManagerLicenseKey |
| InvalidState | Thrown if the feature cannot be supported on the platform, potentially because the hardware configuration does not support it. See LicenseManagerLicenseKey |
| LicenseServerUnavailable | Thrown if the license server is unavailable. See LicenseManagerLicenseKey |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem | Use the license source of the specified host. |
Return Value
| Type | Description |
|---|---|
| LicenseAvailabilityInfo[] |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
The behavior of the API depends on whether or not it is called on VirtualCenter or a stand-alone host. For a stand-alone host, the host argument is ignored. For VirtualCenter, the API allows a query for the license usage on a particular host. If no host is set, the usage of non-host specific features are returned.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem | Host to query for usage. |
Return Value
| Type | Description |
|---|---|
| LicenseUsageInfo |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
For VirtualCenter, only the "vc" edition is supported.
For ESX 3.0, three editions are supported: "esxFull", "esxVmtn", and "esxExpress".
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the LicenseManager used to make the method call. |
| host* | ManagedObjectReference
to a HostSystem |
Host to act on if LicenseManager is not on a host. See LicenseManagerLicenseKey |
| featureKey* | xsd:string |
Name of edition feature to select. If featureKey is not
set, no edition is selected and the product becomes unlicensed. See LicenseManagerLicenseKey |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| InvalidArgument | Thrown if a feature key is not an edition feature key. See LicenseManagerLicenseKey |
| InvalidState | Thrown if the feature cannot be supported on the platform, potentially because the hardware configuration does not support it. See LicenseManagerLicenseKey |
| LicenseServerUnavailable | Thrown if the license server is unavailable. See LicenseManagerLicenseKey |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| Top of page | Local Properties | Local Methods | |
| Managed Object Types | Data Object Types | All Properties | All Methods |