-
Notifications
You must be signed in to change notification settings - Fork 189
Open
Open
Feature
Copy link
Labels
Description
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)