Findings

Methods described in this section relate to the inventory findings API. These methods can be accessed at TenableExposureManagement.inventory.findings.

class FindingsAPI(api: APISession)[source]
list(query_text: str | None = None, query_mode: QueryMode | None = None, filters: list[PropertyFilter] | None = None, extra_properties: list[str] | None = None, offset: int | None = None, limit: int | None = None, sort_by: str | None = None, sort_direction: SortDirection | None = None) Findings[source]

Retrieve findings

Parameters:
  • query_text (str, optional) – The text to search for.

  • query_mode (QueryMode, optional) – The search mode. Defaults to QueryMode.SIMPLE.

  • filters (list, optional) – A list of filters to apply. Defaults to None.

  • extra_properties (list, optional) – Additional properties to include in the response. Defaults to None.

  • offset (int, optional) – Number of records to skip. Defaults to 0.

  • limit (int, optional) – Maximum number of records per page. Defaults to 1000.

  • sort_by (str, optional) – Field to sort by.

  • sort_direction (SortDirection, optional) – Sorting direction, either SortDirection.ASC or SortDirection.DESC.

Returns:

The request assets.

Example

>>> tenable_inventory_findings = tenable_inventory.finding.list()
>>> for finding in tenable_inventory_findings:
...     pprint(finding)
list_properties() list[Field][source]

Retrieve finding properties

Returns:

The finding properties.

Examples

>>> properties = tenable_inventory.finding.list_properties()
>>> for finding_property in properties:
...     pprint(finding_property)