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.nessus agent_groups.{add,delete}_agents() not consistently available in tenable.io #684

Open
dsobon opened this issue Mar 21, 2023 · 0 comments
Labels
enhancement New features/functionality Tenable.io Tenable.io Package

Comments

@dsobon
Copy link

dsobon commented Mar 21, 2023

Is your feature request related to a problem? Please describe.

tenable.nessus and tenable.io provide similar functionality.

Unfortunately, methods are inconsistently provided, eg: agent_groups.delete_agents() vs agent_groups.delete_agent()

I have written a script that talks to both tenable.io and nessus managers, and unfortunately i have to add method checks due to this.

Example:

        if hasattr(api.agent_groups,"add_agents"):
            api.agent_groups.add_agents(group_id, add_agent.get(group_id))
        else:
            api.agent_groups.add_agent(group_id, *add_agent.get(group_id))

        if hasattr(api.agent_groups,"delete_agents"):
            api.agent_groups.delete_agents(group_id, del_agent.get(group_id))
        else:
            api.agent_groups.delete_agent(group_id, *del_agent.get(group_id))

Describe the solution you'd like

For tenable.io module to support delete_agents(), like it is in tenable.nessus module.

Describe alternatives you've considered

A workaround exists, but it would be beneficial for the modules to be consistent if it provides more or less the same backend functionality (deleting/adding agents to groups)

@aseemsavio aseemsavio added enhancement New features/functionality Tenable.io Tenable.io Package labels Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features/functionality Tenable.io Tenable.io Package
Projects
None yet
Development

No branches or pull requests

2 participants