Skip to content

Network Scan Templates

Operations for the Network Scan Templates service collection.

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


OperationDescription
create-templates
create_templates
Create “templates” using provided specifications
delete-templates
delete_templates
Delete “templates” 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
query-templates
query_templates
Get “templates IDs” by filter
update-templates
update_templates
Update “templates” using provided specifications

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 NetworkScanTemplates
falcon = NetworkScanTemplates(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"
}
]


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 NetworkScanTemplates
falcon = NetworkScanTemplates(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"
]


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