The following page lists the HTTP operations that need to be performed to successfully query 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 a license for a given activation key filtered by its state, use the following request:
GET
/licenses
/(activation_key)?state=(states)
where:
- The activation_key (string) is your product activation key.
- The state (string) indicates a required, comma-separated value. The state can be one of the following: success, failed, in_progress.
Note: The order of the states is irrelevant and does not influence the results of the request.
Also note that request headers are used by default.
Example request
GET/rest/v1/licenses/25N8D-NC35D-WD01P-8JI4K?state=success,failed HTTP/1.1 Host: license.x-formation.com Accept: application/hal+json
Response
The LAC REST API returns standard HTTP response codes described in the following table.
Status Code | Header Field | Description |
---|---|---|
200 OK | Collection of licenses for a given state. | |
400 Bad Request | Unsupported license state. | |
403 Forbidden | License order has been disabled. | |
404 Not Found | No licenses were found for a given state. |
Example response
For more information about HTTP methods, see Supported HTTP methods.