Versions Compared

Key

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

This page refers to End-user REST API version 1 only. See End-user REST API for links to other versions of the End-user REST API.


The following page lists The following page lists the HTTP operations that need to be performed to successfully deactivate 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. using the End-user REST API version 1. 

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

Panel
DELETE /licenses/(activation_key)/(hostids)

where the request parameters are as follows where: 

  • activation_key (string) (Your product activation key), and  
  • hostids (base64) are encoded hostids.
  • is your license order activation key

and

  • hostids (string) are Base64 encoded values. The format of HostID(s) that you can specify is a comma-separated list of types and values; for example, ETHERNET=AABBCCDDEEFF,IPADDRESS=192.168.0.5 

 (Note that request headers are used by default.)

Example request

panel
Code Block
languagejs
firstline1
linenumberstrue
DELETE /rest/v1/
licenes
licenses/4CT1V-4T10N-K3Y1S-C000L/
dHlwZTE9dmFsdwUxLHR5cGUyPXZhbHVlPTI
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.

Example response

 

License order has been disabled or cannot deactivate license, because it's not allowed for end user.

404 Not FoundLicense does not exist.

Example responses

panel
Code Block
languagejs
firstline1
linenumberstrue
HTTP/1.1 204 No Content


Code Block
languagejs
firstline1
linenumberstrue
HTTP/1.1 403 Forbidden
Content-Type: application/hal+json
 
{
    "message": "Cannot deactivate license."
}


Code Block
languagejs
firstline1
linenumberstrue
HTTP/1.1 404 Not Found
Content-Type: application/hal+json
 
{
    "message": "License does not exist."
}

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