Versions Compared

Key

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

Request

To activate a license for a unique combination of the activation key and HostID use the following request:

 PUT /licenses/(activation_key)/(hostids),

where request parameters are:

  • activation_key (string) (Your product activation key), and

  • hostids (base64) are encoded hostids.

(Note that request headers are used by default.)

Example request

Panel
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 CodeHeader FieldDescription
202 AcceptedThis status code indicates that a 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.

400 Bad Request

 

 

403 Forbidden

This status code indicates that the requested activation key is invalid or the format of a hosid is wrong. The response body contains more details about this error.



This status code indicates that a license cannot be activated according to the internal configuration. The response message contains more information.

Example response

Panel
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.