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

Compare with Current View Page History

« Previous Version 8 Next »

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.

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

DELETE /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

DELETE /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 
204 No ContentDeactivation successful.
403 ForbiddenLicense order has been disabled.
404 Not FoundCannot deactivate license.

Example response

HTTP/1.1 204 No Content

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

  • No labels