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://{api_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
"QueryAssignedLicensesRequestType Object"
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
[
    "LicenseAssignmentManagerLicenseAssignment Object"
]

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/LicenseAssignmentManager/{moId}/QueryAssignedLicenses