Files¶ The following methods allow for interaction into the Tenable Vulnerability Management file API endpoints. Methods available on tio.files: class FileAPI(api: restfly.session.APISession)[source]¶ upload(fobj: BinaryIO, encrypted: bool = False)[source]¶ Uploads a file into Tenable Vulnerability Management. file: upload Parameters fobj (FileObject) – The file object intended to be uploaded into Tenable Vulnerability Management. encrypted (bool, optional) – If the file is encrypted, set the flag to True. Returns The fileuploaded attribute Return type str Examples >>> with open('file.txt') as fobj: ... file_id = tio.files.upload(fobj)