POST Licenses
Add a new license to the collection. A UUID will be generated to represent the license, and can be used for deletion. The license summary cannot be set, and is derived from the license key. In addition, a single license key cannot be updated in-place. Instead, the old license keys should be deleted after the new license is added.
{
"key": "M502V-XXXXX-XXXXX-XXXXX-XXXXX"
}
Created a new license with the provided license key.
{
"license": {
"id": "abcdef12-3456-7890-ba36-123456789012",
"status": "Active",
"error": "",
"configuration": "1 Operating System Instance (OSI)",
"licenseKey": "M502V-XXXXX-XXXXX-XXXXX-XXXXX",
"infinite": true,
"count": 0,
"typeEnum": "OSI",
"expirationDate": -14400000,
"createdDate": 1498731659310
}
}
Error when trying to upload an invalid license key
{
"errorMessage": "Invalid serial number"
}
errorMessage
Error when trying to upload the license key which already exists
{
"errorMessage": "License already exists."
}
errorMessage
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v2/licenses