You can use the File API to upload files, such as a scan data import, to Tenable.io. File content must be sent as form data. If the file is encrypted, you must use the
no_enc parameter with the value of
Important! Maximum upload file size is 4 GB.
This example illustrates how to upload an encrypted file using cURL:
curl -H X-APIKeys: accessKey=<access_key>;secretKey=<secret_key> -F Filedata=@~/data/nessus.db -X POST https://cloud.tenable.com/file/upload?no_enc=1
This example illustrates how you can upload the file with the pyTenable Python library:
python>>> with open(`~/data/nessus.db`) as fobj: file_id = tio.files.upload(fobj,True)