Licenses

Controlling Access and Features: Understanding Licenses

In the Babel Licensing Service API, 'Licenses' form the cornerstone of the system, representing the critical information that clients consume to authorize access to application features. These licenses are the key elements that define the terms of use, restrictions, and access levels for various components and functionalities within applications.

The concept of a license in Babel Licensing is multifaceted. Each license encapsulates specific details such as the duration of validity, the scope of features it covers, and any particular usage rights or limitations. This allows for a granular level of control over how different aspects of an application are accessed and utilized by end-users.

Get

Roles: Administrator, LicenseManager, Sales

This method is used to fetch details of existing licenses. It allows for querying license data, including their terms, scope, and validity. This is essential for monitoring and managing the licenses currently in use, ensuring they align with compliance and business requirements.

using System.Net.Http;
using Babel.Licensing.Service.Management;

using var httpClient = CreateHttpClient();

var get = new GetLicensesRequest();
var httpMessage = MakeApiRequest(get, HttpMethod.Get, $"/v1/licenses");

var result = await httpClient.SendAsync(httpMessage);
var getResponse = await ParseResponseAsync<GetLicensesResponse>(result);

Post

Roles: Administrator, LicenseManager, Sales

The POST method facilitates the creation of new licenses. It's used to define and add new license to the system, specifying parameters such as duration, licensing mode, features and restrictions. This method is crucial for expanding the licensing capabilities to new users or applications.

Put

Roles: Administrator, LicenseManager, Sales

Utilizing the PUT method allows for modifications to existing licenses. It's employed to update license terms, extend validity, or alter the scope of access. This method is vital for maintaining the relevance and accuracy of licenses as user needs and application features evolve.

Delete

Roles: Administrator, LicenseManager

The DELETE method is used for removing existing licenses from the system. This action is typically performed when a license is no longer needed or if it's being replaced by an updated license. It's a critical step in managing the lifecycle of licenses and ensuring that outdated or invalid licenses are not in circulation.

Last updated