Important

The Nessus Package is currently a Technology Preview

Software Update

Methods described in this section relate to the software update API. These methods can be accessed at Nessus.software_update.

class SoftwareUpdateAPI(api: APISession)[source]
settings(update: Literal['all', 'plugins', 'disabled'], custom_host: str | None = None, auto_update_delay: int | None = None) None[source]

Update the software update settings

Parameters:
  • update (str) – What components should be updated? Expected values are all, plugins, and disabled.

  • custom_host (str, optional) – URL of the custom plugin feed host

  • auto_update_delay (int, optional) – How often should the plugin feed attempt to update (in hours)

Example

>>> nessus.software_update.settings(update='all',
...                                 auto_update_delay=24
...                                 )
update() None[source]

Schedules a software update for all components

Example

>>> nessus.software_update.update()