Scan Zones¶
The following methods allow for interaction into the Tenable Security Center Scan Zone API. These items are typically seen under the Scan Zones section of Tenable Security Center.
Methods available on sc.scan_zones
:
- class ScanZoneAPI(api: APISession)[source]¶
- create(name, **kw)[source]¶
Creates a scan zone.
- Parameters:
- Returns:
The newly created scan zone.
- Return type:
Examples
>>> zone = sc.scan_zones.create('Example Scan Zone', ... ips=['127.0.0.1'], scanner_ids=[1])
- delete(id)[source]¶
Removes the specified scan zone.
- Parameters:
id (int) – The numeric identifier for the scan-zone to remove.
- Returns:
An empty response.
- Return type:
Examples
>>> sc.scan_zones.delete(1)
- details(id, fields=None)[source]¶
Returns the details for a specific scan zone.
- Parameters:
- Returns:
The scan zone resource record.
- Return type:
Examples
>>> zone = sc.scan_zones.details(1) >>> pprint(zone)
- edit(id, **kw)[source]¶
Edits a scan zone.
- Parameters:
- Returns:
The newly updated scan zone.
- Return type:
Examples
>>> zone = sc.scan_zones.create(1, ... ips=['127.0.0.1'], scanner_ids=[1])