Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status CodeHeader FieldDescription
200 OKLicense is being activated.
303 See Other

License activation finished and the response to the request can be found under a new location, which depends on whether the activation was successful or not.


403 ForbiddenLicense order has been disabled.
404 Not FoundLicense activation was not requested.

Example responseresponses

Code Block
languagejs
firstline1
linenumberstrue
HTTP/1.1 200 OK
 
{
    "creationTime": "2014-07-15T06:08:39+00:00",
    "expirationDate": "2014-07-17T00:00:00+00:00",
    "maintenanceEndDate": null,
    "hostids": [
        {
            "nameRaw": "USERNAME",
            "name": "Username",
            "value": "test"
        }
    ],
    "_links": {
        "self": {
            "href": "https://lac.dev/rest/v1/license-queue/UQJ7W-HFBTO-DBKH2-C4COW/VVNFUk5BTUU9dGVzdA=="
        }
    }
}
Code Block
languagetext
firstline1
linenumberstrue
HTTP/1.1 303 See Other
Location: https://license.x-formation.com/rest/v1/license-errors/4CT1V-4T10N-K3Y1S-C000L/dHlwZTE9dmFsdWUxLHR5cGUyPXZhbHVlPTI=
Code Block
languagejs
firstline1
linenumberstrue
HTTP/1.1 403 Forbidden
 
{
    "message": "License order has been disabled."
}
Code Block
languagejs
firstline1
linenumberstrue
HTTP/1.1 404 Not Found
 
{
    "message": "License request was not created."
}

For more information about HTTP methods, see Supported HTTP methods.