Floating Server
...
Registrations
Consumption List
3 min
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 hte 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 name add consumption method post url api v4 add consumption description tab examples examples languages id q dqrecsjj9iadeqd5al3 language go code url sourceurl add consumption n ndata consumption n tproduct product n tconsumptions consumptions n tmax overages max overages n tallow overages allow overages n n nupdatedjson err json marshal data n nreq err http newrequest post url bytes newbuffer updatedjson n customlabel selectedlanguageid q dqrecsjj9iadeqd5al3 results languages id l3lczcqmorw9pjbbnve9z language 200 customlabel code n max consumptions 100 n total consumptions 1 n allow overages false n max overages 0 n reset consumption true n consumption period daily n allow unlimited consumptions false n id sxluk8oajwcqlo smin0 language 400 code n code license activated max times n message no free slots for product p1 n status 400 n customlabel selectedlanguageid l3lczcqmorw9pjbbnve9z request pathparameters queryparameters headerparameters bodydataparameters name product kind required type string description product short code name consumptions kind required type string description number of consumptions children name max overages kind optional type string description maximum number of overages children name allowe overages kind optional type string description true or false children formdataparameters currentnewparameter label body parameter value bodydataparameters 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 opted between daily, weekly, monthly, or annually