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

Documentation bug at https://pytenable.readthedocs.io/en/stable/api/io/filters.html #752

Open
jimhranicky opened this issue Jan 12, 2024 · 0 comments
Assignees
Labels
documentation Documentation issues Tenable.io Tenable.io Package

Comments

@jimhranicky
Copy link

Describe the bug
Documentation bug at https://pytenable.readthedocs.io/en/stable/api/io/filters.html

asset_tag_filters() is not under tio.tags, but tio.filters

To Reproduce

python -c '
import os
from tenable.io import TenableIO                                                                                              
akey = os.environ["PYTEN_AKEY"]                                                             
skey = os.environ["PYTEN_SKEY"]                            
tio = TenableIO(akey, skey)

for filt in tio.tags.asset_tag_filters(): 
    print(filt)
'

Traceback (most recent call last):
  File "<string>", line 8, in <module>
AttributeError: 'TagsAPI' object has no attribute 'asset_tag_filters'

Expected behavior

python -c '
import os
from tenable.io import TenableIO
akey = os.environ["PYTEN_AKEY"]
skey = os.environ["PYTEN_SKEY"]
tio = TenableIO(akey, skey)

for filt in tio.filters.asset_tag_filters(): 
    print(filt)
'
tenable_uuid
mac_address
netbios_name
fqdn
operating_system
property_list
aws_ec2_instance_id
aws_ec2_instance_ami_id
aws_owner_id
aws_region
[...]

Screenshots
If applicable, add screenshots to help explain your problem.

System Information (please complete the following information):

  • OS: PopOS 22.04
  • Architecture 64bit
  • Version Python 3.11.2, PyTenable 1.4.16
@aseemsavio aseemsavio self-assigned this Jan 16, 2024
@SteveMcGrath SteveMcGrath added documentation Documentation issues Tenable.io Tenable.io Package labels Feb 12, 2024
SteveMcGrath added a commit that referenced this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation issues Tenable.io Tenable.io Package
Projects
None yet
Development

No branches or pull requests

3 participants