Closed pdreeves closed 3 years ago
Tenable changed their API for WAS scans some months ago. This is also the reason that once you cut over to the new user interface, the old UI becomes archive only (the old UI hit the old API endpoints).
To get WAS scan results the endpoint is now https://cloud.tenable.com/was/v2/scans
, see docs here.
Basically, I don't think PyTenable is updated to support interacting with WAS scans (launching, configuring, retrieving, etc).
@pdreeves - is the suggestion by @d0n601 fix your issue? can I close this issue? if not, can you please add more details if this still happens? thanks.
@levwais Yes, that worked and we updated our Lambda function to use the new API. If you want to close this issue that's fine. I just wanted to report that PyTenable was unable to retrieve WAS results. Thank you!
pyTenable was written to interface to the old v1 endpoints, which have been depricated. It's on our roadmap to support v2
Duplicate of #310
Describe the bug After March 1st, PyTenable is unable to retrieve WAS results from Tenable.io.
To Reproduce Steps to reproduce the behavior:
tio = TenableIO(access_key="123", secret_key="123")
tio.scans.list(last_modified = since27days)
Expected behavior WAS results be listed in the response to the tio.scans.list call.
System Information (please complete the following information):