For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetLicensesHttp

Description

Retrieves a list of licenses from the License Server. The result set can be filtered and paginated, and returned in either XML or JSON format.

To call this function, you must set the enableGetLicensesHttp server property to true.

You should never call this function from within the application. GetLicensesHttp should be called from systems that cannot be intercepted by your client such as your website, your own server, or your back-office systems. This function requires user/password authentication and cannot be called without password protection. Depending on your server configuration (getLicensesHttpRequiresStrictAuthentication), a valid authentication token may also be required.

To invoke this method via a URL, append this function's name to the URL of the QLM License Server and add the required arguments.

Example: https://yourserver/Qlm/QlmLicenseServerNetCore/api/v1/QlmApi/GetLicensesHttp?is_user=[user]&is_pwd=[password]&is_vendor=[vendor]&is_format=[xml|json]

Parameters

Argument
Description

is_user

username defined in Manage Keys / 3rd Party Extensions. Required for authentication.

is_pwd

password defined in Manage Keys / 3rd Party Extensions. Required for authentication.

is_vendor

one of the supported vendors. If omitted, the default commerce provider configured on the server is used.

is_format

the format of the response. Can be one of: xml | json. If not specified, the server default format is used. Example: &is_format=json

is_filter

a filter expression used to restrict the licenses returned. The filter is applied against the qryLicenseInfo view. Example: &is_filter=ProductID=1

is_batchsize

the maximum number of records to return in a single request. Works together with is_offset to paginate results. When omitted, no batch limit is applied (-1). Example: &is_batchsize=100

is_offset

the zero-based record offset from which to start returning results. Works together with is_batchsize to paginate results. Defaults to 0. Example: &is_offset=200

is_writetocontext

when set to true, the response is written directly to the HTTP response stream. When set to false or omitted, the response is returned to the caller. Example: &is_writetocontext=false

Response

On success, the method returns the list of licenses in the requested format (xml or json).

On failure, the method returns an error response in the requested format:

  • XML errors are returned with content type text/xml.

  • JSON errors are returned with content type application/json.

Remarks

The enableGetLicensesHttp server property must be set to true, otherwise the request is rejected.

The request must be authenticated with a valid is_user / is_pwd. Calling this method without password protection results in an authentication error.

If strict authentication is enforced for GetLicensesHttp, a valid authentication token must also be supplied.

Use is_batchsize and is_offset together to page through large result sets.

Last updated