Skip to content

Network Scan Scans

Operations for the Network Scan Scans service collection.

LanguageLast Update
Pythonv1.6.1
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
aggregate_scansMixin0
aggregate_scans
Returns “scans” aggregations
get_scans
get_scans
Get “scans” by their IDs
create_scans
create_scans
Create “scans” using provided specifications
delete_scans
delete_scans
Delete “scans” by their IDs
update_scans
update_scans
Update “scans” using provided specifications
query_scansMixin0
query_scans
Get “scans IDs” by filter

Returns “scans” aggregations

POST /netscan/aggregates/scans/GET/v1
Scope Network Scan: READ Consumes · Produces application/json
PEP 8 aggregate_scans
NameTypeData typeDescription
bodybodydictionaryFull body payload as JSON formatted dictionary.
date_rangesbodyarray
excludebodystring
extended_boundsbodyobject
fieldbodystring
filterbodystring
filters_specbodyobject
frombodyinteger
includebodystring
intervalbodystring
max_doc_countbodyinteger
min_doc_countbodyinteger
missingbodystring
namebodystring
percentsbodyarray
qbodystring
rangesbodyarray
sizebodyinteger
sortbodystring
sub_aggregatesbodyarray
time_zonebodystring
typebodystring
from falconpy import NetworkScanScans
falcon = NetworkScanScans(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.aggregate_scans(date_ranges=[{"key": "value"}],
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=[{"key": "value"}],
size=integer,
sort="string",
sub_aggregates=[{"key": "value"}],
time_zone="string",
type="string")
print(response)

Get “scans” by their IDs

GET /netscan/entities/scans/v1
Scope Network Scan: READ Consumes · Produces application/json
PEP 8 get_scans
NameTypeData typeDescription
idsquerystring or list of stringsIDs of “scans” to be retrieved (Min: 1, Max: 100)
from falconpy import NetworkScanScans
falcon = NetworkScanScans(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)

Create “scans” using provided specifications

POST /netscan/entities/scans/v1
Scope Network Scan: WRITE Consumes · Produces application/json
PEP 8 create_scans
NameTypeData typeDescription
bodybodydictionaryFull body payload as JSON formatted dictionary.
block_windowsbodyobjectBlock Windows configuration attached to the scan
credentialedbodybooleanIndicates if the scan is credentialed
credentialsbodyobjectThe credentials for this scan
descriptionbodystringDescription of the scan
fragile_device_detectionbodybooleanIndicates if the scan includes fragile-device detection
namebodystringName of the scan
schedulingbodyobjectScheduling configuration attached to the scan
target_assetbodyobjectThe target asset for this scan
target_asset_filterbodyobjectThe target asset filter for this scan
target_external_ipbodyobjectThe target external IP for this scan
target_ipbodyobjectThe target IP for this scan
target_typebodystringThe type of the target for this scan
template_idbodystringTemplate identifier for the scan
from falconpy import NetworkScanScans
falcon = NetworkScanScans(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)

Delete “scans” by their IDs

DELETE /netscan/entities/scans/v1
Scope Network Scan: WRITE Consumes · Produces application/json
PEP 8 delete_scans
NameTypeData typeDescription
idsquerystring or list of stringsIDs of “scans” to be deleted (Min: 1, Max: 100)
from falconpy import NetworkScanScans
falcon = NetworkScanScans(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)

Update “scans” using provided specifications

PATCH /netscan/entities/scans/v1
Scope Network Scan: WRITE Consumes · Produces application/json
PEP 8 update_scans
NameTypeData typeDescription
bodybodydictionaryFull body payload as JSON formatted dictionary.
block_windowsbodyobjectBlock Windows configuration attached to the scan
credentialedbodybooleanIndicates if the scan is credentialed
credentialsbodyobjectThe credentials for this scan
descriptionbodystringDescription of the scan
fragile_device_detectionbodybooleanIndicates if the scan includes fragile device detection
idbodystringID of the scan
namebodystringName of the scan
schedulingbodyobjectScheduling configuration attached to the scan
target_assetbodyobjectThe target asset associated with this scan
target_asset_filterbodyobjectThe target asset filter associated with this scan
target_external_ipbodyobjectThe target external IP associated with this scan
target_ipbodyobjectThe target IP associated with this scan
target_typebodystringThe type of the target scan
template_idbodystringTemplate ID of the scan
from falconpy import NetworkScanScans
falcon = NetworkScanScans(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)

Get “scans IDs” by filter

GET /netscan/queries/scans/v1
Scope Network Scan: READ Consumes · Produces application/json
PEP 8 query_scans
NameTypeData typeDescription
offsetqueryintegerAn 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
limitqueryintegerThe number of “scans IDs” to return in this response (Min: 1, Max: 100, Default: 100)
sortquerystringSort “scans” by their properties. A single sort field is allowed
filterquerystringSearch for “scans” by providing an FQL filter
from falconpy import NetworkScanScans
falcon = NetworkScanScans(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_scans(offset="string",
limit="string",
sort="string",
filter="string")
print(response)