Skip to content

Commit

Permalink
Added source and severity_modification_type filters to vm export (#738)
Browse files Browse the repository at this point in the history
* added new filters to vm export, fixed snyk issue

* edited the documentation from asset to scan
  • Loading branch information
aseemsavio authored Nov 21, 2023
1 parent f17bf4e commit 43cbed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tenable/io/exports/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ def vulns(self, **kwargs) -> Union[ExportsIterator, UUID]:
Only return findings with the specified plugin type.
scan_uuid (uuid, optional):
Only return findings with the specified scan UUID.
source (list[str], optional):
Only return vulnerabilities for assets that have the specified scan source.
severity_modification_type (list[str], optional):
Only return vulnerabilities with the specified severity modification type.
severity (list[str], optional):
Only return findings with the specified severities.
state (list[str], optional):
Expand Down
2 changes: 2 additions & 0 deletions tenable/io/exports/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class VulnExportSchema(Schema):
state = fields.List(LowerCase(fields.Str()))
vpr_score = fields.Nested(VPRSchema())
scan_uuid = fields.Str()
source = fields.List(fields.Str())
severity_modification_type = fields.List(fields.Str())

# Asset fields
tags = fields.List(fields.Tuple((fields.Str(), fields.Str())))
Expand Down

0 comments on commit 43cbed0

Please sign in to comment.