License Manager Query License Source Availability

License Manager Query License Source Availability

Deprecated as of vSphere API 4.0, use QueryAssignedLicenses instead.

Queries the current license source for total and available licenses available for each feature known to this system.

Required privileges: Global.Licenses

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/LicenseManager/{moId}/QueryLicenseSourceAvailability
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
Required
{
    "host": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    }
}
host
Optional

Reference to an instance of the HostSystem managed object.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Array of LicenseAvailabilityInfo of type(s) application/json
[
    {
        "_typeName": "string",
        "feature": {
            "_typeName": "string",
            "key": "string",
            "featureName": "string",
            "featureDescription": "string",
            "state": "string",
            "costUnit": "string",
            "sourceRestriction": "string",
            "dependentKey": [
                "string"
            ],
            "edition": false,
            "expiresOn": "string"
        },
        "total": 0,
        "available": 0
    }
]