To activate a license for a given, unique combination of the activation key and HostID, use the following request:
PUT /licenses/
(activation_key)/(hostids),
where the request parameters are as follows:
- activation_key (string), which is your product activation key, and
- hostids (base64), which are encoded hostids.
(Note that request headers are used by default.)
Example request
PUT /rest/v1/licenes/4CT1V-4T10N-K3Y1S-C000L/dHlwZTE9dmFsdwUxLHR5cGUyPXZhbHVlPTI=
HTTP/1.1
Host: license.x-formation.com
Accept: application/hal_json
Response
The LAC REST API returns standard HTTP response codes as described in the following table.
Status Code | Header Field | Description |
---|---|---|
202 Accepted | The request for a new license is created upon its successful validation. Furthermore, it indicates that the Location header field value consists of an absolute URI for automatic redirection to this resource.
| |
| The requested activation key is invalid or the format of a hosid is wrong. The response body contains more details about this error.
| |
403 Forbidden | The license cannot be activated according to the internal configuration. The response message contains more information. |
Example response
HTTP/1.1 202 Accepted
Vary: Accept
Location: https://license.x-formation.com/rest/v1/licenes/4CT1V-4T10N-K3Y1S-C000L/dHlwZTE9dmFsdwUxLHR5cGUyPXZhbHVlPTI=
For more information about HTTP methods, see Supported HTTP methods.