API Guide

Table Of Contents
License management
Topics:
Get list of vCenter and host license
Get vCenter and hosts license details
Upload license to OMIVV
Get list of vCenter and host license
Description: Gets list of all licenses uploaded in OMIVV.
Command or URL: /Services/LicenseService/Licenses
Method: GET
Parameters: None
Authorization: Bearer authentication
vCenter privileges required: None
HTTP response code:
Table 4. HTTP response code
Code Description or response object
200 License Info
401 Authorization failure
404 Resource not found
429 Too many requests
500 Internal Server error
For OMIVV-Specific error codes, see OMIVV-Specific error codes on page 112.
Example Response:
[
{
"id": "{License ID}",
"href": "https://{OMIVVIP}/Spectre/api/rest/v1/Services/LicenseService/Licenses/
{LicenseID}",
"objectType": "LicenseInfo",
"entitlementID": "{Entitlement ID}",
"licenseType": "{License Type}",
"maxHosts": {number of maximum hosts allowed},
"startDate": "{License start date}",
"expirationDate": "{License expiry date}",
"duration": {Duration of license},
"licenseStatus": "{License status}"
},
]
NOTE: After a standard license is uploaded, the evaluation license status is displayed as "inactive".
For more information, see Response body on page 96.
6
License management 39