License Manager Query License Usage
Deprecated as of vSphere API 4.0, use QueryAssignedLicenses instead.
Returns the license usage.
The license usage is a list of supported features and the number of licenses that have been reserved.
PLATFORM Specific Notes: VirtualCenter - Empty string returns the usage of non-host specific features. Must specify managed host to query. ESX Server - Host argument ignored.
Required privileges: System.Read
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case LicenseManager/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
{
"host": {
"_typeName": "string",
"type": "string",
"value": "string"
}
}
Host to query for usage. If missing, query the server the LicenseManager is on.
OK
{
"_typeName": "string",
"source": {
"_typeName": "string"
},
"sourceAvailable": false,
"reservationInfo": [
{
"_typeName": "string",
"key": "string",
"state": "string",
"required": 0
}
],
"featureInfo": [
{
"_typeName": "string",
"key": "string",
"featureName": "string",
"featureDescription": "string",
"state": "string",
"costUnit": "string",
"sourceRestriction": "string",
"dependentKey": [
"string"
],
"edition": false,
"expiresOn": "string"
}
]
}
The source from which licensing data is acquired.
See also LicenseSource.
Returns whether or not the source is currently available.
See also LicenseManager.sourceAvailable.
A list of feature reservations.
Includes all the features that are referenced in the reservation array.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/sdk/vim25/{release}/LicenseManager/{moId}/QueryLicenseUsage