Skip to content
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

Incorrect Method Name and Invalid tags Parameter in PyTenable WAS Export API #883

Open
amaruf-tenb opened this issue Feb 18, 2025 · 0 comments

Comments

@amaruf-tenb
Copy link

Describe the bug
The PyTenable library has an issue with the method name in exports API (it uses the wrong method name, tio.exports.was_vulns instead of tio.exports.was). Additionally, the tags parameter is invalid and should be removed, as the Tenable API V2 documentation for WAS Export Assets does not include a tag parameter (see https://developer.tenable.com/reference/export-assets-v2)

To Reproduce
Steps to reproduce the behavior:

  1. Go to the PyTenable library's exports API implementation (tenable/io/exports/api.py).
  2. Call the method tio.exports with a tags parameter.
  3. Observe the error related to the incorrect method name and invalid tags parameter.
  4. Refer to Tenable API v2 documentation for Export Assets, confirming no tag parameter exists.

Expected behavior
The method should be tio.exports.was instead of tio.exports.was_vulns, and the tags parameter should be removed from the function call to comply with the Tenable API documentation.

Screenshots
N/A

System Information (please complete the following information):
N/A

Additional context
The error arises because the current implementation is not aligned with the API documentation for Tenable’s WAS Export Assets in version 2 (see https://developer.tenable.com/reference/export-assets-v2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant