Consumption List

Consumptions

The floating server provides support for managing license and feature consumptions associated with the licenses stored within its database. Requests to add consumptions are handled through the /add_consumption and /add_feature_consumption endpoints. Upon receipt of these requests, provided there are sufficient consumptions available for the specific license or feature, the floating server immediately updates the local consumption value. This updated value is reflected in the server's response as well as displayed on the UI's registration page.

Additionally, at hourly intervals, local consumption values of the platform-sourced licenses undergo synchronization with the cloud LicenseSpring server. Detailed insights into both license and feature consumptions, including maximum allowed consumption and overages, can be found on the license details page, accessible from the configuration page.

It's essential to note that any alteration to a consumption value requires the license or feature to be of consumption type and that sufficient consumption is available, taking into account maximum consumption limits, overages allowance, and the possibility of unlimited consumption.

circle-info

Local consumption values are updated immediately on successful add-consumption requests and are synchronized with the cloud LicenseSpring server on an hourly schedule.

Add Consumption (API)

Endpoint: POST /api/v4/add_consumption

Request body parameters:

Name
Kind
Type
Description

Product

required

string

Product Short Code

Consumptions

required

string

Number of Consumptions

Max_overages

optional

string

Maximum Number of Overages

Allowe_overages

optional

string

True or False

Example request (Go):

Example success response (200):

Example error response (400):

Consumption Reset

For licenses or features designated for consumption reset with defined consumption periods, consumption values are automatically reset to zero by the end of this period. This reset occurs during one of the hourly synchronization events. Consequently, it may take up to an hour following the reset period for this adjustment to reflect on the server. Consumption reset periods can be chosen between daily, weekly, monthly, or annually.

Was this helpful?