License Assignment Manager Query Assigned Licenses

License Assignment Manager Query Assigned Licenses

Get information about all the licenses associated with an entity

Required privileges: System.View

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/LicenseAssignmentManager/{moId}/QueryAssignedLicenses
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 LicenseAssignmentManager/{moId}.

string
release
Required

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


Request Body
QueryAssignedLicensesRequestType of type(s) application/json
Required
{
    "entityId": "string"
}
string
entityId
Optional

ID of the entity. E.g. HostSystem.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Array of LicenseAssignmentManagerLicenseAssignment of type(s) application/json
[
    {
        "_typeName": "string",
        "entityId": "string",
        "scope": "string",
        "entityDisplayName": "string",
        "assignedLicense": {
            "_typeName": "string",
            "licenseKey": "string",
            "editionKey": "string",
            "name": "string",
            "total": 0,
            "used": 0,
            "costUnit": "string",
            "properties": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "labels": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": "string"
                }
            ]
        },
        "properties": [
            {
                "_typeName": "string",
                "key": "string",
                "value": {
                    "_typeName": "string"
                }
            }
        ]
    }
]