SDKs
...
v2
Samples

Floating License

5min

License Check

The CheckLicense function is not only used to validate the current license status, but also plays a role in floating licenses.

If the license is of floating cloud type, calling CheckLicense will automatically assign one floating slot to the current machine, identified by its hardware ID.

Go


Borrow

Floating licenses come with a predefined floating period—a time frame in which the license is valid on a given machine. If the license configuration allows, this period can be borrowed or extended for offline usage.

You can extend the floating period using one of two methods:

Borrow for a Specific Number of Hours and Days

Go


Borrow Until a Specific Time

Go


These functions will only succeed if the license allows borrowing and there are available slots or permissions for the request.

Release Floating License

If you no longer need the license on the current machine, or want to release a floating slot before the borrow period ends, you can call:

Go


This function immediately frees up the slot assigned to the current machine, making it available for others.