-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling scan.details(<UUID>)
returns an error.
#729
Comments
lol I'm crazy or this issue is the exact opposite of : #726 (comment) ""error":"Invalid 'id' field: invalid type 'string', expecting 'int' " On SC we need to force it to be a string, it was an int before. |
Any update on this? @SteveMcGrath |
This is actually a very different issue thanks to some error handling that was erroneously introduced into the Tenable SecurityCenter API that required the integers to be string formatted. As for the issue relating to the TVM scan.details method, that method routed through the editor API, which currently only accepts an integer value. scans.details attempts to recreate the config of the scan using the editor API: https://pytenable.readthedocs.io/en/stable/api/io/scans.html#tenable.io.scans.ScansAPI.details the API's "scan details" is actually a truncated JSON report of the last scan that was run with some config data thrown in as well. To use that API, refer to the scans.results method instead. https://pytenable.readthedocs.io/en/stable/api/io/scans.html#tenable.io.scans.ScansAPI.results |
Gotchya, so what would you say is the workaround or fix? To use the |
yes, in the SDK/library re linked that API to "results" as its a more correct name to what it's doing. "details" is a term we reserve for the configuration of that object. The Nessus and TVM |
Describe the bug
Either I'm losing my mind, or calling a
scan
viaUUID
isn't working as expected.To Reproduce
Returns:
However, in the documentation:
I tried converting it to the Python UUID type, and submitting it:
It still returned an error.
Expected behavior
Be able to fetch scan details via UUID: https://developer.tenable.com/reference/scans-details
System Information (please complete the following information):
pyTenable 1.4.13
The text was updated successfully, but these errors were encountered: