License API

The following methods allow for interaction into the Tenable Security Center Configuration API. These items are typically seen under the License Configuration section of the Tenable Security Center Settings UI.

This API is simple and utilitarian. No translation of the data returned from the raw API is done.

Methods available on sc.license:

class LicenseAPI(api: APISession)[source]

The way this works is broken for a number of reasons. The first is that we have to submit the file AND bind the license in one HTTP(S) session. Otherwise the file gets deleted and the reference to the file is lost. This is why we have to do the file read and upload in a single session in the set() method.

details()[source]

Retrieves the current license information.

license: get

Returns:

The license information.

Return type:

dict

update(file)[source]

Sets the license file.

license: set

Parameters:

file (str) – The path to the license file to upload.

We are using the internal API to do this: