Skip to content

Network Scan Zones

Operations for the Network Scan Zones service collection.

LanguageLast Update
Pythonv1.6.5
PowerShell
Gov0.22.0
TypeScriptv0.6.0
Rust
Rubyv1.4.0


OperationDescription
aggregate-zones
aggregate_zones
Returns “zones” aggregations
combined-zones
combined_zones
Get “zones” by filter
create-zones
create_zones
Create “zones” using provided specifications
delete-zones
delete_zones
Delete “zones” by their IDs
get-zones
get_zones
Get “zones” by their IDs
query-zones
query_zones
Get “zones IDs” by filter
update-zones
update_zones
Update “zones” using provided specifications

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 NetworkScanZones
falcon = NetworkScanZones(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 “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 NetworkScanZones
falcon = NetworkScanZones(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 “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 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.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 “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 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)
[
"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 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)
[
{
"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 “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 NetworkScanZones
falcon = NetworkScanZones(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_zones(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"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 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.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"
}
]