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

Compare with Current View Page History

« Previous Version 2 Next »

The following page lists the HTTP operations that need to be performed to successfully download an LAC license. The client can successfully use the methods described below if the server is configured to support a given combination of methods.

Each web service that a client wishes to interact with has two parts: request parameters and the response, as described below.

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

GET /licenses/(activation_key)/(hostids),

where the request parameters are as follows:


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

  • hostids (base64) are encoded hostids.

(Note that request headers are used by default.)

Example request

GET /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
200 OKThe license exists and it has been activated.
403 ForbiddenThe license order has been disabled.
404 Not FoundThe license does not exist.

   Example response

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/hal+json
 
{
"activation_time": "2012-0503 02:12:48",
"license: "3qfhb34q89g-7bqh-qhff3fg379n6349mzfeuoylgaw4807g*&
GQWEdf806VGQ#F807gQF87g"
}

 See also Supported HTTP methods.

 

  • No labels