You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

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

PUT /licenses/(activation_key)/(hostids)

where:

  • The activation_key (string) is your product activation key.
     
  • The values of hostids are encoded in Base64 format.

 Note that request headers are used by default.

Example request

PUT /rest/v1/licenses/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 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.

 

400 Bad Request

 

 

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/license-queue/4CT1V-4T10N-K3Y1S-C000L/dHlwZTE9dmFsdWUxLHR5cGUyPXZhbHVlPTI=

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

  • No labels