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

[Tenable.sc] Defining multiple tuples in "filter" for sc.plugins.list #718

Open
stiong-p opened this issue Aug 21, 2023 · 1 comment
Open
Labels
enhancement New features/functionality Tenable.sc Tenable.sc Package

Comments

@stiong-p
Copy link

stiong-p commented Aug 21, 2023

Hi Team,

I am looking to list out plugins within a specified time range, based on plugin modified date.
Single filter works fine.

plugins = sc.plugins.list(
        fields=['id','name','pluginModDate'],
        filter=('pluginModDate','gte','1692399599'))
for plugin in plugins:
        print(plugin)

However, it spits out all the plugins with the following:
filter=(('pluginModDate','gte','1692399599')and('pluginModDate','lte','1692489599'))

1692399599 = Friday, August 18, 2023 10:59:59 PM GMT
1692489599 = Saturday, August 19, 2023 11:59:59 PM GMT

What am I missing? Please kindly advise.

If multiple conditions for the same filter parameter cannot be made, are there other workarounds?

Thank you.

@aseemsavio aseemsavio added enhancement New features/functionality Tenable.sc Tenable.sc Package labels Aug 24, 2023
@aseemsavio
Copy link
Collaborator

The API seems to support multiple filters and pyTenable doesn't. Adding this as an enhancement to do to pyTenable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features/functionality Tenable.sc Tenable.sc Package
Projects
None yet
Development

No branches or pull requests

2 participants