Skip to content

tenable.nessus agent_groups.{add,delete}_agents() not consistently available in tenable.io #684

@dsobon

Description

@dsobon

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions