Tenable One

This package covers the Tenable One.

class TenableOne(access_key: str | None = None, secret_key: str | None = None, **kwargs)[source]

The Tenable One object is the primary interaction point for users to interface with Tenable One via the pyTenable library. All the API endpoint classes that have been written will be grafted onto this class.

Environment Variables:

TO_ACCESS_KEY: API Access Key for the Tenable One Application.

TO_SECRET_KEY: API Secret Key for the Tenable One Application.

TO_URL: The Application URL. Defaults to https://cloud.tenable.com.

Examples

Basic Example:

>>> from tenable.tenableone import TenableOne
>>> tenable_one = TenableOne('ACCESS_KEY', 'SECRET_KEY')

Example with proper identification:

>>> tenable_inventory = TenableOne('ACCESS_KEY', 'SECRET_KEY',
>>>     vendor='Company Name',
>>>     product='My Awesome Widget',
>>>     build='1.0.0')
property attack_path

The interface object for the Tenable One Attack Path APIs.

property exposure_view

The interface object for the Tenable One Exposure View APIs.

property inventory

The interface object for the Tenable One Inventory APIs.

property tags

The interface object for the Tenable One Tags APIs.