API Guide

Table Of Contents
Request Body:
{
"sharetype": "{share type}",
"path": "{license file path}",
"credential": {
"username": "{username}",
"domain": "{domain}",
"password": "{password}"
}
}
For more information about request body parameters, see Request body on page 92.
Parameters:
For NFS, credential is not required.
For CIFS credentials are required. domain parameter is not mandatory.
vCenter privileges required: None
HTTP response code:
Table 7. HTTP response code
Code Description or response object
200 Created
204 No content
401 Authorization failure
424 Failed Dependency
429 Too many requests
500 Internal Server error / timeout
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}"
}
License management
41