Skip to content

Network Scan Zones

Operations for the Network Scan Zones service collection.

LanguageLast Update
Pythonv1.6.1
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
aggregate_zones
aggregate_zones
Returns “zones” aggregations
combined_zones
combined_zones
Get “zones” by filter
get_zones
get_zones
Get “zones” by their IDs
create_zones
create_zones
Create “zones” using provided specifications
delete_zones
delete_zones
Delete “zones” by their IDs
update_zones
update_zones
Update “zones” using provided specifications
query_zones
query_zones
Get “zones IDs” by filter

Returns “zones” aggregations

POST /netscan/aggregates/zones/GET/v1
Scope Network Scan: READ Consumes · Produces application/json
PEP 8 aggregate_zones
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 NetworkScanZones
falcon = NetworkScanZones(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.aggregate_zones(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 “zones” by filter

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

Get “zones” by their IDs

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

Create “zones” using provided specifications

POST /netscan/entities/zones/v1
Scope Network Scan: WRITE Consumes · Produces application/json
PEP 8 create_zones
NameTypeData typeDescription
bodybodydictionaryFull body payload as JSON formatted dictionary.
namebodystringThe name which was given to the zone
scannersbodyarrayThe set of scanner AIDs assigned to the zone
from falconpy import NetworkScanZones
falcon = NetworkScanZones(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_zones(name="string", scanners=["string"])
print(response)

Delete “zones” by their IDs

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

Update “zones” using provided specifications

PATCH /netscan/entities/zones/v1
Scope Network Scan: WRITE Consumes · Produces application/json
PEP 8 update_zones
NameTypeData typeDescription
bodybodydictionaryFull body payload as JSON formatted dictionary.
idbodystringThe unique identifier of the zone
namebodystringThe name given to the zone
scanners_to_addbodyarrayThe scanner AIDs to be added to the zone (in addition to what already exists in the zone)
scanners_to_removebodyarrayThe scanner AIDs to be removed from the zone (from what already exists in the zone)
from falconpy import NetworkScanZones
falcon = NetworkScanZones(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_zones(id="string",
name="string",
scanners_to_add=["string"],
scanners_to_remove=["string"])
print(response)

Get “zones IDs” by filter

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