Skip to content

Network Scan

Operations for the Network Scan service collection.

LanguageLast Update
Pythonv1.6.7
PowerShell
Gov0.25.0
TypeScriptv0.9.0
Rust
Rubyv1.6.0

OperationDescription
aggregate-detections
aggregate_netscan_detections
Returns “detections” aggregations
aggregate-networks
aggregate_networks
Returns “networks” aggregations
aggregate-scan-runs
aggregate_scan_runs
Returns “scan-runs” aggregations
aggregate-scanners
aggregate_scanners
Returns “scanners” aggregations
aggregate-scansMixin0
aggregate_scans
Returns “scans” aggregations
aggregate-zones
aggregate_zones
Returns “zones” aggregations
combined-detections
get_combined_netscan_detections
Get “detections” by filter
combined-zones
combined_zones
Get “zones” by filter
create-networks
create_networks
Create “networks” using provided specifications
create-scan-runs
create_scan_runs
Create “scan-runs” using provided specifications
create-scans
create_scans
Create “scans” using provided specifications
create-templates
create_templates
Create “templates” using provided specifications
create-zones
create_zones
Create “zones” using provided specifications
delete-networks
delete_networks
Delete “networks” by their IDs
delete-scans
delete_scans
Delete “scans” by their IDs
delete-templates
delete_templates
Delete “templates” by their IDs
delete-zones
delete_zones
Delete “zones” by their IDs
get-detections
get_netscan_detections
Get “detections” by their IDs
get-global-configs
get_global_configs
Get “global-configs” for the CID
get-networks
get_networks
Get “networks” by their IDs
get-scan-run-reports
get_scan_run_reports
Downloads scan run report in CSV format
get-scan-runs
get_scan_runs
Get “scan-runs” by their IDs
get-scanners
get_scanners
Get “scanners” by their IDs
get-scans
get_scans
Get “scans” by their IDs
get-template-configs
get_template_configs
Get details on the network scan template configurations
get-templates
get_templates
Get “templates” by their IDs
get-zones
get_zones
Get “zones” by their IDs
query-detections
query_netscan_detections
Get “detections IDs” by filter
query-networks
query_networks
Get “networks IDs” by filter
query-scan-runs
query_scan_runs
Get “scan-runs IDs” by filter
query-scanners
query_scanners
Get “scanners IDs” by filter
query-scansMixin0
query_scans
Get “scans IDs” by filter
query-templates
query_templates
Get “templates IDs” by filter
query-zones
query_zones
Get “zones IDs” by filter
update-global-configs
update_global_configs
Update “global-configs” using provided specifications
update-networks
update_networks
Update “networks” using provided specifications
update-scan-runs
update_scan_runs
Update “scan-runs” using provided specifications
update-scanners
update_scanners
Update “scanners” using provided specifications
update-scans
update_scans
Update “scans” using provided specifications
update-templates
update_templates
Update “templates” using provided specifications
update-zones
update_zones
Update “zones” using provided specifications

Returns “detections” aggregations

Method POST
Route /netscan/aggregates/detections/GET/v1
Scope Network scanning: READ
PEP 8 aggregate_netscan_detections
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
The date_ranges value.
exclude body · string
The exclude value.
extended_bounds body · object
The extended_bounds value.
field body · string
The field value.
filter body · string
The filter value.
filters_spec body · object
The filters_spec value.
from body · integer
The from value.
include body · string
The include value.
interval body · string
The interval value.
max_doc_count body · integer
The max_doc_count value.
min_doc_count body · integer
The min_doc_count value.
missing body · string
The missing value.
name body · string
The name value.
percents body · array
The percents value.
q body · string
The q value.
ranges body · array
The ranges value.
size body · integer
The size value.
sort body · string
The sort value.
sub_aggregates body · array
The sub_aggregates value.
time_zone body · string
The time_zone value.
type body · string
The type value.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
extended_bounds = {
"max": "string",
"min": "string"
}
filters_spec = {
"filters": "string",
"other_bucket": True,
"other_bucket_key": "string"
}
ranges = [
{
"From": 0.0,
"To": 0.0
}
]
response = falcon.aggregate_netscan_detections(date_ranges=date_ranges,
exclude="string",
extended_bounds=extended_bounds,
field="string",
filter="string",
filters_spec=filters_spec,
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
percents=["string"],
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=["string"],
time_zone="string",
type="string")
print(response)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Returns “networks” aggregations

Method POST
Route /netscan/aggregates/networks/GET/v1
Scope Network scanning: READ
PEP 8 aggregate_networks
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
Array of date range specifications for date-based aggregations.
exclude body · string
Fields to exclude from the aggregation.
extended_bounds body · object
field body · string
The field to aggregate on.
filter body · string
FQL query to filter the data before aggregating.
filters_spec body · object
from body · integer
Starting index for the aggregation.
include body · string
Fields to include in the aggregation.
interval body · string
Time interval for date histogram aggregations (e.g., day, week, month)
max_doc_count body · integer
Maximum document count for bucket inclusion.
min_doc_count body · integer
Minimum document count for bucket inclusion.
missing body · string
The value to use for documents missing the aggregation field.
name body · string
The name of the aggregation query.
percents body · array
q body · string
Full-text search query.
ranges body · array
Numeric range specifications for range aggregations.
size body · integer
The maximum number of results to return per aggregate.
sort body · string
The field to sort aggregate results on.
sub_aggregates body · array
Nested sub-aggregation specifications.
time_zone body · string
The time zone to use for date aggregations.
type body · string
The type of aggregate query to perform.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
ranges = [
{
"From": "integer",
"To": "integer"
}
]
sub_aggregates = [
{}
]
response = falcon.aggregate_networks(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=sub_aggregates,
time_zone="string",
type="string")
print(response)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Returns “scan-runs” aggregations

Method POST
Route /netscan/aggregates/scan-runs/GET/v1
Scope Network scanning: READ
PEP 8 aggregate_scan_runs
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
exclude body · string
extended_bounds body · object
field body · string
filter body · string
filters_spec body · object
from body · integer
include body · string
interval body · string
max_doc_count body · integer
min_doc_count body · integer
missing body · string
name body · string
percents body · array
q body · string
ranges body · array
size body · integer
sort body · string
sub_aggregates body · array
time_zone body · string
type body · string
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
extended_bounds = {
"max": "string",
"min": "string"
}
filters_spec = {
"filters": {},
"other_bucket": boolean,
"other_bucket_key": "string"
}
ranges = [
{
"from": integer,
"to": integer
}
]
sub_aggregates = [
{
"date_ranges": [
{
"from": "string",
"to": "string"
}
],
"exclude": "string",
"extended_bounds": {
"max": "string",
"min": "string"
},
"field": "string",
"filter": "string",
"filters_spec": {
"filters": {},
"other_bucket": boolean,
"other_bucket_key": "string"
},
"from": integer,
"include": "string",
"interval": "string",
"max_doc_count": integer,
"min_doc_count": integer,
"missing": "string",
"name": "string",
"percents": ["string"],
"q": "string",
"ranges": [
{
"from": integer,
"to": integer
}
],
"size": integer,
"sort": "string",
"sub_aggregates": [
{
"date_ranges": ["string"],
"exclude": "string",
"extended_bounds": {},
"field": "string",
"filter": "string",
"filters_spec": {},
"from": integer,
"include": "string",
"interval": "string",
"max_doc_count": integer,
"min_doc_count": integer,
"missing": "string",
"name": "string",
"percents": ["string"],
"q": "string",
"ranges": ["string"],
"size": integer,
"sort": "string",
"sub_aggregates": ["string"],
"time_zone": "string",
"type": "string"
}
],
"time_zone": "string",
"type": "string"
}
]
response = falcon.aggregate_scan_runs(date_ranges=date_ranges,
exclude="string",
extended_bounds=extended_bounds,
field="string",
filter="string",
filters_spec=filters_spec,
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
percents=["string"],
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=sub_aggregates,
time_zone="string",
type="string")
print(response)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Returns “scanners” aggregations

Method POST
Route /netscan/aggregates/scanners/GET/v1
Scope Network scanning: READ
PEP 8 aggregate_scanners
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
exclude body · string
extended_bounds body · object
field body · string
filter body · string
filters_spec body · object
from body · integer
include body · string
interval body · string
max_doc_count body · integer
min_doc_count body · integer
missing body · string
name body · string
percents body · array
q body · string
ranges body · array
size body · integer
sort body · string
sub_aggregates body · array
time_zone body · string
type body · string
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
extended_bounds = {
"max": "string",
"min": "string"
}
filters_spec = {
"filters": {},
"other_bucket": boolean,
"other_bucket_key": "string"
}
ranges = [
{
"from": integer,
"to": integer
}
]
sub_aggregates = [
{
"date_ranges": [
{
"from": "string",
"to": "string"
}
],
"exclude": "string",
"extended_bounds": {
"max": "string",
"min": "string"
},
"field": "string",
"filter": "string",
"filters_spec": {
"filters": {},
"other_bucket": boolean,
"other_bucket_key": "string"
},
"from": integer,
"include": "string",
"interval": "string",
"max_doc_count": integer,
"min_doc_count": integer,
"missing": "string",
"name": "string",
"percents": ["string"],
"q": "string",
"ranges": [
{
"from": integer,
"to": integer
}
],
"size": integer,
"sort": "string",
"sub_aggregates": [
{
"date_ranges": ["string"],
"exclude": "string",
"extended_bounds": {},
"field": "string",
"filter": "string",
"filters_spec": {},
"from": integer,
"include": "string",
"interval": "string",
"max_doc_count": integer,
"min_doc_count": integer,
"missing": "string",
"name": "string",
"percents": ["string"],
"q": "string",
"ranges": ["string"],
"size": integer,
"sort": "string",
"sub_aggregates": ["string"],
"time_zone": "string",
"type": "string"
}
],
"time_zone": "string",
"type": "string"
}
]
response = falcon.aggregate_scanners(date_ranges=date_ranges,
exclude="string",
extended_bounds=extended_bounds,
field="string",
filter="string",
filters_spec=filters_spec,
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
percents=["string"],
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=sub_aggregates,
time_zone="string",
type="string")
print(response)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Returns “scans” aggregations

Method POST
Route /netscan/aggregates/scans/GET/v1
Scope Network scanning: READ
PEP 8 aggregate_scans
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
Array of date range specifications for date-based aggregations.
exclude body · string
Fields to exclude from the aggregation.
extended_bounds body · object
field body · string
The field to aggregate on.
filter body · string
FQL query to filter the data before aggregating.
filters_spec body · object
from body · integer
Starting index for the aggregation.
include body · string
Fields to include in the aggregation.
interval body · string
Time interval for date histogram aggregations (e.g., day, week, month)
max_doc_count body · integer
Maximum document count for bucket inclusion.
min_doc_count body · integer
Minimum document count for bucket inclusion.
missing body · string
The value to use for documents missing the aggregation field.
name body · string
The name of the aggregation query.
percents body · array
q body · string
Full-text search query.
ranges body · array
Numeric range specifications for range aggregations.
size body · integer
The maximum number of results to return per aggregate.
sort body · string
The field to sort aggregate results on.
sub_aggregates body · array
Nested sub-aggregation specifications.
time_zone body · string
The time zone to use for date aggregations.
type body · string
The type of aggregate query to perform.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
ranges = [
{
"From": "integer",
"To": "integer"
}
]
sub_aggregates = [
{}
]
response = falcon.aggregate_scans(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=sub_aggregates,
time_zone="string",
type="string")
print(response)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Returns “zones” aggregations

Method POST
Route /netscan/aggregates/zones/GET/v1
Scope Network scanning: READ
PEP 8 aggregate_zones
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
Array of date range specifications for date-based aggregations.
exclude body · string
Fields to exclude from the aggregation.
extended_bounds body · object
field body · string
The field to aggregate on.
filter body · string
FQL query to filter the data before aggregating.
filters_spec body · object
from body · integer
Starting index for the aggregation.
include body · string
Fields to include in the aggregation.
interval body · string
Time interval for date histogram aggregations (e.g., day, week, month)
max_doc_count body · integer
Maximum document count for bucket inclusion.
min_doc_count body · integer
Minimum document count for bucket inclusion.
missing body · string
The value to use for documents missing the aggregation field.
name body · string
The name of the aggregation query.
percents body · array
q body · string
Full-text search query.
ranges body · array
Numeric range specifications for range aggregations.
size body · integer
The maximum number of results to return per aggregate.
sort body · string
The field to sort aggregate results on.
sub_aggregates body · array
Nested sub-aggregation specifications.
time_zone body · string
The time zone to use for date aggregations.
type body · string
The type of aggregate query to perform.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
ranges = [
{
"From": "integer",
"To": "integer"
}
]
sub_aggregates = [
{}
]
response = falcon.aggregate_zones(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=sub_aggregates,
time_zone="string",
type="string")
print(response)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Get “detections” by filter

Method GET
Route /netscan/combined/detections/v1
Scope Network scanning: READ
PEP 8 get_combined_netscan_detections
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “detections” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “detections” by their properties. A single sort field is allowed
filter query · string
Search for “detections” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_combined_netscan_detections(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
{
"default_tcp_ports": [],
"default_udp_ports": [],
"id": "string",
"name": "string",
"script_id": "string",
"services": [],
"supported_credentials_protocols": [],
"types": []
}
]


Get “zones” by filter

Method GET
Route /netscan/combined/zones/v1
Scope Network scanning: READ
PEP 8 combined_zones
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “zones” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “zones” by their properties. A single sort field is allowed
filter query · string
Search for “zones” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.combined_zones(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"has_conflict": false,
"id": "string",
"is_default": false,
"name": "string",
"scanners": [],
"updated_by": "string",
"updated_timestamp": "string"
}
]


Create “networks” using provided specifications

Method POST
Route /netscan/entities/networks/v1
Scope Network scanning: WRITE
PEP 8 create_networks
body body · dictionary
Full body payload as JSON formatted dictionary.
name body · string
The name which was given to the network
scanner_aids body · array
The set of scanners assigned to the network
scanner_assignment_type body · string
The scanner assignment type for the network
Available values (3)
localzonemanual
subnet body · string
The subnet included in the network
zone_id body · string
The zone to which the network is assigned
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.create_networks(name="string",
scanner_aids=id_list,
scanner_assignment_type="string",
subnet="string",
zone_id="string")
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"gateway_external_ip": "string",
"gateway_internal_ip": "string",
"gateway_mac_address": "string",
"gateway_vendor_name": "string",
"has_conflict": false,
"id": "string",
"managed_assets_count": 0,
"name": "string",
"ownership": "string",
"scanner_aids": [],
"scanner_assignment_type": "string",
"subnet": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string",
"zone_id": "string"
}
]


Create “scan-runs” using provided specifications

Method POST
Route /netscan/entities/scan-runs/v1
Scope Network scanning: WRITE
PEP 8 create_scan_runs
body body · dictionary
Full body payload as JSON formatted dictionary.
config body · object
The scan run configuration
scan_id body · string
The scan ID based on which to create a scan run
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
config = {
"additional_tcp_ports": [
"string"
],
"additional_udp_ports": [
"string"
],
"auto_include_new_detections": "boolean",
"detections": [
"string"
],
"fragile_device_detection": "boolean",
"ignore_tcp_resets": "boolean",
"ports_scan_level": "string",
"scan_exclusion": {
"cidrs": [
{
"active": "boolean",
"value": "string"
}
],
"host_groups": [
"string"
],
"hosts": [
"string"
],
"ip_ranges": [
{
"active": "boolean",
"from": "string",
"to": "string"
}
],
"ips": [
{
"active": "boolean",
"value": "string"
}
]
},
"scan_intensity": "string",
"target_asset": {
"ids": [
"string"
]
},
"target_asset_filter": {
"fql_filter": "string"
},
"target_asset_vuln": {
"asset_ids": [
"string"
],
"cve_ids": [
"string"
]
},
"target_external_ip": {
"ip_specs": [
"string"
]
},
"target_ip": {
"ip_specs": [
"string"
],
"zone_id": "string"
},
"target_type": "string",
"type": "string"
}
response = falcon.create_scan_runs(config=config, scan_id="string")
print(response)
[
{
"assets_count": 0,
"assets_with_vulnerabilities_count": 0,
"cid": "string",
"config": {},
"created_by": "string",
"created_timestamp": "string",
"credentialed_asset_summary": {},
"end_timestamp": "string",
"error_code": 0,
"error_reason": "string",
"id": "string",
"progress_pct": 0,
"report_generated": false,
"scan_id": "string",
"scanners": [],
"start_timestamp": "string",
"status": "string",
"target_type": "string",
"targets_configured": 0,
"targets_found": 0,
"targets_scanned": 0,
"template_id": "string",
"template_name": "string",
"trigger_type": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string",
"vulnerabilities_count": 0
}
]


Create “scans” using provided specifications

Method POST
Route /netscan/entities/scans/v1
Scope Network scanning: WRITE
PEP 8 create_scans
body body · dictionary
Full body payload as JSON formatted dictionary.
block_windows body · object
Block Windows configuration attached to the scan
credentialed body · boolean
Indicates if the scan is credentialed
credentials body · object
The credentials for this scan
description body · string
Description of the scan
fragile_device_detection body · boolean
Indicates if the scan includes fragile-device detection
name body · string
Name of the scan
scan_exclusion body · object
Scan exclusion configuration for the scan
scheduling body · object
Scheduling configuration attached to the scan
target_asset body · object
The target asset for this scan
target_asset_filter body · object
The target asset filter for this scan
target_external_ip body · object
The target external IP for this scan
target_ip body · object
The target IP for this scan
target_type body · string
The type of the target for this scan
Available values (5)
ipassetasset_filter
asset_vulnexternal_ip
template_id body · string
Template identifier for the scan
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_scans(block_windows={},
credentialed=boolean,
credentials={},
description="string",
fragile_device_detection=boolean,
name="string",
scheduling={},
target_asset={},
target_asset_filter={},
target_external_ip={},
target_ip={},
target_type="string",
template_id="string")
print(response)
[
{
"block_windows": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"credentialed": false,
"credentials": {},
"description": "string",
"fragile_device_detection": false,
"frequency": "string",
"id": "string",
"last_run_timestamp": "string",
"last_scan_status": "string",
"name": "string",
"next_run_timestamp": "string",
"scan_exclusion": {},
"scheduling": {},
"target_asset": {},
"target_asset_filter": {},
"target_external_ip": {},
"target_ip": {},
"target_type": "string",
"template_id": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string"
}
]


Create “templates” using provided specifications

Method POST
Route /netscan/entities/templates/v1
Scope Network scanning: WRITE
PEP 8 create_templates
body body · dictionary
Full body payload as JSON formatted dictionary.
active_check_level body · string
The active check level associated with the template
Available values (2)
active_check_safe_onlyactive_check_all
additional_tcp_ports body · array
Additional TCP ports associated with the template
additional_udp_ports body · array
Additional UDP ports associated with the template
auto_include_new_detections body · boolean
Automatically include new detections in the template
detections body · array
Detections associated with the template
excluded_tcp_ports body · array
Excluded TCP ports associated with the template
excluded_udp_ports body · array
Excluded UDP ports associated with the template
ignore_tcp_resets body · boolean
Ignore TCP resets associated with the template
name body · string
The name given to the template
ports_scan_level body · string
The port scan level associated with the template
Available values (3)
defaultall_portscustom
scan_flags body · object
Custom nmap flag overrides for this template
scan_intensity body · string
The scan intensity at which scans will run from this template
Available values (5)
basicstandardcautious
maximumcustom
type body · string
The type of the template
Available values (2)
discoveryassessment
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.create_templates(active_check_level="string",
additional_tcp_ports=id_list,
additional_udp_ports=id_list,
auto_include_new_detections=boolean,
detections=id_list,
ignore_tcp_resets=boolean,
name="string",
ports_scan_level="string",
scan_intensity="string",
type="string")
print(response)
[
{
"active_check_level": "string",
"additional_tcp_ports": [],
"additional_udp_ports": [],
"auto_include_new_detections": false,
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"detections": [],
"excluded_tcp_ports": [],
"excluded_udp_ports": [],
"id": "string",
"ignore_tcp_resets": false,
"name": "string",
"ports_scan_level": "string",
"scan_flags": {},
"scan_intensity": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string"
}
]


Create “zones” using provided specifications

Method POST
Route /netscan/entities/zones/v1
Scope Network scanning: WRITE
PEP 8 create_zones
body body · dictionary
Full body payload as JSON formatted dictionary.
name body · string
The name which was given to the zone
scanners body · array
The set of scanner AIDs assigned to the zone
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.create_zones(name="string", scanners=id_list)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"has_conflict": false,
"id": "string",
"is_default": false,
"name": "string",
"scanners": [],
"updated_by": "string",
"updated_timestamp": "string"
}
]


Delete “networks” by their IDs

Method DELETE
Route /netscan/entities/networks/v1
Scope Network scanning: WRITE
PEP 8 delete_networks
ids query · string or list of strings
IDs of “networks” to be deleted (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_networks(ids=id_list)
print(response)
[
"string"
]


Delete “scans” by their IDs

Method DELETE
Route /netscan/entities/scans/v1
Scope Network scanning: WRITE
PEP 8 delete_scans
ids query · string or list of strings
IDs of “scans” to be deleted (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_scans(ids=id_list)
print(response)
[
"string"
]


Delete “templates” by their IDs

Method DELETE
Route /netscan/entities/templates/v1
Scope Network scanning: WRITE
PEP 8 delete_templates
ids query · string or list of strings
IDs of “templates” to be deleted (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_templates(ids=id_list)
print(response)
[
"string"
]


Delete “zones” by their IDs

Method DELETE
Route /netscan/entities/zones/v1
Scope Network scanning: WRITE
PEP 8 delete_zones
ids query · string or list of strings
IDs of “zones” to be deleted (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_zones(ids=id_list)
print(response)
[
"string"
]


Get “detections” by their IDs

Method GET
Route /netscan/entities/detections/v1
Scope Network scanning: READ
PEP 8 get_netscan_detections
ids query · string or list of strings
IDs of “detections” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_netscan_detections(ids=id_list)
print(response)
[
{
"default_tcp_ports": [],
"default_udp_ports": [],
"id": "string",
"name": "string",
"script_id": "string",
"services": [],
"supported_credentials_protocols": [],
"types": []
}
]


Get “global-configs” for the CID

Method GET
Route /netscan/entities/global-configs/v1
Scope Network scanning: READ
PEP 8 get_global_configs
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_global_configs()
print(response)
[
{
"auto_confirm_ownership": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"managed_host_group": {},
"managed_trusted_scanner_host_group": {},
"max_concurrent_tasks": 0,
"network_scanning_enabled": false,
"scan_exclusion": {},
"scanners": [],
"scanners_exclusion": [],
"updated_by": "string",
"updated_timestamp": "string"
}
]


Get “networks” by their IDs

Method GET
Route /netscan/entities/networks/v1
Scope Network scanning: READ
PEP 8 get_networks
ids query · string or list of strings
IDs of “networks” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_networks(ids=id_list)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"gateway_external_ip": "string",
"gateway_internal_ip": "string",
"gateway_mac_address": "string",
"gateway_vendor_name": "string",
"has_conflict": false,
"id": "string",
"managed_assets_count": 0,
"name": "string",
"ownership": "string",
"scanner_aids": [],
"scanner_assignment_type": "string",
"subnet": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string",
"zone_id": "string"
}
]


Downloads scan run report in CSV format

Method GET
Route /netscan/entities/scan-run-reports/v1
Scope Network scanning: READ
PEP 8 get_scan_run_reports
id query · string
Scan run ID for which report is to be fetched
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_scan_run_reports(id="string")
print(response)
{
"errors": [
{
"code": 0,
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string",
"writes": {
"resources_affected": 0
}
}
}


Get “scan-runs” by their IDs

Method GET
Route /netscan/entities/scan-runs/v1
Scope Network scanning: READ
PEP 8 get_scan_runs
ids query · string or list of strings
IDs of “scan-runs” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scan_runs(ids=id_list)
print(response)
[
{
"assets_count": 0,
"assets_with_vulnerabilities_count": 0,
"cid": "string",
"config": {},
"created_by": "string",
"created_timestamp": "string",
"credentialed_asset_summary": {},
"end_timestamp": "string",
"error_code": 0,
"error_reason": "string",
"id": "string",
"progress_pct": 0,
"report_generated": false,
"scan_id": "string",
"scanners": [],
"start_timestamp": "string",
"status": "string",
"target_type": "string",
"targets_configured": 0,
"targets_found": 0,
"targets_scanned": 0,
"template_id": "string",
"template_name": "string",
"trigger_type": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string",
"vulnerabilities_count": 0
}
]


Get “scanners” by their IDs

Method GET
Route /netscan/entities/scanners/v1
Scope Network scanning: READ
PEP 8 get_scanners
ids query · string or list of strings
IDs of “scanners” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scanners(ids=id_list)
print(response)
[
{
"agent_version": "string",
"aid": "string",
"available_disk_space": 0,
"available_disk_space_pct": 0,
"average_memory_usage": 0,
"average_memory_usage_pct": 0,
"average_processor_usage": 0,
"hostname": "string",
"id": "string",
"last_seen_network_id": "string",
"last_seen_timestamp": "string",
"last_seen_zone_id": "string",
"local_ip": "string",
"max_memory_usage": 0,
"max_memory_usage_pct": 0,
"max_processor_usage": 0,
"network_ids": [],
"os_version": "string",
"platform_name": "string",
"product_type_desc": "string",
"used_disk_space": 0,
"used_disk_space_pct": 0
}
]


Get “scans” by their IDs

Method GET
Route /netscan/entities/scans/v1
Scope Network scanning: READ
PEP 8 get_scans
ids query · string or list of strings
IDs of “scans” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scans(ids=id_list)
print(response)
[
{
"block_windows": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"credentialed": false,
"credentials": {},
"description": "string",
"fragile_device_detection": false,
"frequency": "string",
"id": "string",
"last_run_timestamp": "string",
"last_scan_status": "string",
"name": "string",
"next_run_timestamp": "string",
"scan_exclusion": {},
"scheduling": {},
"target_asset": {},
"target_asset_filter": {},
"target_external_ip": {},
"target_ip": {},
"target_type": "string",
"template_id": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string"
}
]


Get details on the network scan template configurations

Method GET
Route /netscan/entities/template-configs/v1
Scope Network scanning: READ
PEP 8 get_template_configs
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_template_configs()
print(response)
[
"string"
]


Get “templates” by their IDs

Method GET
Route /netscan/entities/templates/v1
Scope Network scanning: READ
PEP 8 get_templates
ids query · string or list of strings
IDs of “templates” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_templates(ids=id_list)
print(response)
[
{
"active_check_level": "string",
"additional_tcp_ports": [],
"additional_udp_ports": [],
"auto_include_new_detections": false,
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"detections": [],
"excluded_tcp_ports": [],
"excluded_udp_ports": [],
"id": "string",
"ignore_tcp_resets": false,
"name": "string",
"ports_scan_level": "string",
"scan_flags": {},
"scan_intensity": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string"
}
]


Get “zones” by their IDs

Method GET
Route /netscan/entities/zones/v1
Scope Network scanning: READ
PEP 8 get_zones
ids query · string or list of strings
IDs of “zones” to be retrieved (Min: 1, Max: 100)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_zones(ids=id_list)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"has_conflict": false,
"id": "string",
"is_default": false,
"name": "string",
"scanners": [],
"updated_by": "string",
"updated_timestamp": "string"
}
]


Get “detections IDs” by filter

Method GET
Route /netscan/queries/detections/v1
Scope Network scanning: READ
PEP 8 query_netscan_detections
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “detections IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “detections” by their properties. A single sort field is allowed
filter query · string
Search for “detections” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_netscan_detections(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Get “networks IDs” by filter

Method GET
Route /netscan/queries/networks/v1
Scope Network scanning: READ
PEP 8 query_networks
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “networks IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “networks” by their properties. A single sort field is allowed
filter query · string
Search for “networks” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_networks(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Get “scan-runs IDs” by filter

Method GET
Route /netscan/queries/scan-runs/v1
Scope Network scanning: READ
PEP 8 query_scan_runs
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “scan-runs IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “scan-runs” by their properties. A single sort field is allowed
filter query · string
Search for “scan-runs” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_scan_runs(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Get “scanners IDs” by filter

Method GET
Route /netscan/queries/scanners/v1
Scope Network scanning: READ
PEP 8 query_scanners
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “scanners IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “scanners” by their properties. A single sort field is allowed
filter query · string
Search for “scanners” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_scanners(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Get “scans IDs” by filter

Method GET
Route /netscan/queries/scans/v1
Scope Network scanning: READ
PEP 8 query_scans
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “scans IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “scans” by their properties. A single sort field is allowed
filter query · string
Search for “scans” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_scans(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Get “templates IDs” by filter

Method GET
Route /netscan/queries/templates/v1
Scope Network scanning: READ
PEP 8 query_templates
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “templates IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “templates” by their properties. A single sort field is allowed
filter query · string
Search for “templates” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_templates(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Get “zones IDs” by filter

Method GET
Route /netscan/queries/zones/v1
Scope Network scanning: READ
PEP 8 query_zones
offset query · integer
An offset used with the limit parameter to manage pagination of results. On your first request, don’t provide an offset. On subsequent requests, add previous offset with the previous limit to continue from that place in the results
limit query · integer
The number of “zones IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sort query · string
Sort “zones” by their properties. A single sort field is allowed
filter query · string
Search for “zones” by providing an FQL filter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_zones(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]


Update “global-configs” using provided specifications

Method PATCH
Route /netscan/entities/global-configs/v1
Scope Network scanning: WRITE
PEP 8 update_global_configs
body body · dictionary
Full body payload as JSON formatted dictionary.
auto_confirm_ownership body · object
Conditions for auto confirmation of network ownership
max_concurrent_tasks body · integer
Maximum scan tasks to run in parallel
network_scanning_enabled body · boolean
Attempts to stop ongoing network scans and disables further scans from being executed
scan_exclusion body · object
Describes scan target exclusions including common as well as zone-level like individual IPs, IP ranges, CIDRs (and CIDRs from Network subnets)
scanners body · array
Describes the list of assets that will act as eligible scanners
scanners_exclusion body · array
Describes the list of assets that will always be excluded from being selected as scanners
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
auto_confirm_ownership = {
"min_managed_assets": "integer"
}
scan_exclusion = {
"exclude_all_managed_hosts": "boolean",
"host_groups": [
"string"
],
"hosts": [
"string"
],
"zone_level_scan_exclusions": [
{
"cidrs": [
"string"
],
"host_groups": [
"string"
],
"hosts": [
"string"
],
"scan_zone_id": "string"
}
]
}
scanners = [
{
"enabled": "boolean",
"id": "string",
"type": "string"
}
]
scanners_exclusion = [
{
"enabled": "boolean",
"id": "string",
"type": "string"
}
]
response = falcon.update_global_configs(auto_confirm_ownership=auto_confirm_ownership,
max_concurrent_tasks=integer,
network_scanning_enabled=boolean,
scan_exclusion=scan_exclusion,
scanners=scanners,
scanners_exclusion=scanners_exclusion)
print(response)
[
{
"auto_confirm_ownership": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"managed_host_group": {},
"managed_trusted_scanner_host_group": {},
"max_concurrent_tasks": 0,
"network_scanning_enabled": false,
"scan_exclusion": {},
"scanners": [],
"scanners_exclusion": [],
"updated_by": "string",
"updated_timestamp": "string"
}
]


Update “networks” using provided specifications

Method PATCH
Route /netscan/entities/networks/v1
Scope Network scanning: WRITE
PEP 8 update_networks
body body · dictionary
Full body payload as JSON formatted dictionary.
id body · string
The unique identifier of the network
name body · string
The name which was given to the network
ownership body · string
Indicates ownership of the network
Available values (3)
unknownconfirmeddenied
scanner_aids body · array
The set of scanners assigned to the network
scanner_assignment_type body · string
The scanner assignment type for the network
Available values (3)
localzonemanual
zone_id body · string
The zone to which the network is assigned
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_networks(id="string",
name="string",
ownership="string",
scanner_aids=id_list,
scanner_assignment_type="string",
zone_id="string")
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"gateway_external_ip": "string",
"gateway_internal_ip": "string",
"gateway_mac_address": "string",
"gateway_vendor_name": "string",
"has_conflict": false,
"id": "string",
"managed_assets_count": 0,
"name": "string",
"ownership": "string",
"scanner_aids": [],
"scanner_assignment_type": "string",
"subnet": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string",
"zone_id": "string"
}
]


Update “scan-runs” using provided specifications

Method PATCH
Route /netscan/entities/scan-runs/v1
Scope Network scanning: WRITE
PEP 8 update_scan_runs
body body · dictionary
Full body payload as JSON formatted dictionary.
action body · string
The action to be performed for the scan run
Available values (1)
stop
id body · string
The ID of the scan run
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_scan_runs(action="string", id="string")
print(response)
[
{
"assets_count": 0,
"assets_with_vulnerabilities_count": 0,
"cid": "string",
"config": {},
"created_by": "string",
"created_timestamp": "string",
"credentialed_asset_summary": {},
"end_timestamp": "string",
"error_code": 0,
"error_reason": "string",
"id": "string",
"progress_pct": 0,
"report_generated": false,
"scan_id": "string",
"scanners": [],
"start_timestamp": "string",
"status": "string",
"target_type": "string",
"targets_configured": 0,
"targets_found": 0,
"targets_scanned": 0,
"template_id": "string",
"template_name": "string",
"trigger_type": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string",
"vulnerabilities_count": 0
}
]


Update “scanners” using provided specifications

Method PATCH
Route /netscan/entities/scanners/v1
Scope Network scanning: WRITE
PEP 8 update_scanners
body body · dictionary
Full body payload as JSON formatted dictionary.
action body · string
The action to take on the provided set of scanners
Available values (2)
addremove
aids body · array
The AIDs of scanners to act on
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_scanners(action="string", aids=id_list)
print(response)
[
"string"
]


Update “scans” using provided specifications

Method PATCH
Route /netscan/entities/scans/v1
Scope Network scanning: WRITE
PEP 8 update_scans
body body · dictionary
Full body payload as JSON formatted dictionary.
block_windows body · object
Block Windows configuration attached to the scan
credentialed body · boolean
Indicates if the scan is credentialed
credentials body · object
The credentials for this scan
description body · string
Description of the scan
fragile_device_detection body · boolean
Indicates if the scan includes fragile device detection
id body · string
ID of the scan
name body · string
Name of the scan
scan_exclusion body · object
Scan exclusion configuration for the scan
scheduling body · object
Scheduling configuration attached to the scan
target_asset body · object
The target asset associated with this scan
target_asset_filter body · object
The target asset filter associated with this scan
target_external_ip body · object
The target external IP associated with this scan
target_ip body · object
The target IP associated with this scan
target_type body · string
The type of the target scan
Available values (5)
ipassetasset_filter
asset_vulnexternal_ip
template_id body · string
Template ID of the scan
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_scans(block_windows={},
credentialed=boolean,
credentials={},
description="string",
fragile_device_detection=boolean,
id="string",
name="string",
scheduling={},
target_asset={},
target_asset_filter={},
target_external_ip={},
target_ip={},
target_type="string",
template_id="string")
print(response)
[
{
"block_windows": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"credentialed": false,
"credentials": {},
"description": "string",
"fragile_device_detection": false,
"frequency": "string",
"id": "string",
"last_run_timestamp": "string",
"last_scan_status": "string",
"name": "string",
"next_run_timestamp": "string",
"scan_exclusion": {},
"scheduling": {},
"target_asset": {},
"target_asset_filter": {},
"target_external_ip": {},
"target_ip": {},
"target_type": "string",
"template_id": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string"
}
]


Update “templates” using provided specifications

Method PATCH
Route /netscan/entities/templates/v1
Scope Network scanning: WRITE
PEP 8 update_templates
body body · dictionary
Full body payload as JSON formatted dictionary.
active_check_level body · string
The active check level associated with the template
Available values (2)
active_check_safe_onlyactive_check_all
additional_tcp_ports body · array
Additional TCP ports associated with the template
additional_udp_ports body · array
Additional UDP ports associated with the template
auto_include_new_detections body · boolean
Automatically include new detections in the template
detections body · array
Detections associated with the template
excluded_tcp_ports body · array
Excluded TCP ports associated with the template
excluded_udp_ports body · array
Excluded UDP ports associated with the template
id body · string
The unique identifier of the template
ignore_tcp_resets body · boolean
Ignore TCP resets associated with the template
name body · string
The name given to the template
ports_scan_level body · string
The port scan level associated with the template
Available values (3)
defaultall_portscustom
scan_flags body · object
Custom nmap flag overrides for this template
scan_intensity body · string
The scan intensity at which scans will run from this template
Available values (5)
basicstandardcautious
maximumcustom
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_templates(active_check_level="string",
additional_tcp_ports=id_list,
additional_udp_ports=id_list,
auto_include_new_detections=boolean,
detections=id_list,
id="string",
ignore_tcp_resets=boolean,
name="string",
ports_scan_level="string",
scan_intensity="string")
print(response)
[
{
"active_check_level": "string",
"additional_tcp_ports": [],
"additional_udp_ports": [],
"auto_include_new_detections": false,
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"detections": [],
"excluded_tcp_ports": [],
"excluded_udp_ports": [],
"id": "string",
"ignore_tcp_resets": false,
"name": "string",
"ports_scan_level": "string",
"scan_flags": {},
"scan_intensity": "string",
"type": "string",
"updated_by": "string",
"updated_timestamp": "string"
}
]


Update “zones” using provided specifications

Method PATCH
Route /netscan/entities/zones/v1
Scope Network scanning: WRITE
PEP 8 update_zones
body body · dictionary
Full body payload as JSON formatted dictionary.
id body · string
The unique identifier of the zone
name body · string
The name given to the zone
scanners_to_add body · array
The scanner AIDs to be added to the zone (in addition to what already exists in the zone)
scanners_to_remove body · array
The scanner AIDs to be removed from the zone (from what already exists in the zone)
from falconpy import NetworkScan
falcon = NetworkScan(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_zones(id="string",
name="string",
scanners_to_add=id_list,
scanners_to_remove=id_list)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"has_conflict": false,
"id": "string",
"is_default": false,
"name": "string",
"scanners": [],
"updated_by": "string",
"updated_timestamp": "string"
}
]