Files

The following methods allow for interaction into the Tenable Security Center File API.

Methods available on sc.files:

class FileAPI(api: APISession)[source]
clear(filename)[source]

Removes the requested file from Tenable Security Center.

file: clear

Parameters:

filename (str) – The file identifier associated to the file.

Returns:

The file location on disk that was removed.

Return type:

str

upload(fobj)[source]

Uploads a file into SecurityCenter and returns the file identifier to be used for subsequent calls.

file: upload

Parameters:

fobj (FileObj) – The file object to upload into SecurityCenter.

Returns:

The filename identifier to use for subsequent calls in Tenable Security Center.

Return type:

str