Vulnerability Network Scan Management
Public API for network scan configuration and management.
Retrieve the current status of a scan run by its ID. Use the fields parameter to specify which fields to return in the response.
Scan run ID to check status for
Fields to include in the response (for example, status).
Scan status retrieved successfully
Response containing the current status of a scan run
Scan status message
Scan is in Running stateBad Request
User not Authorized
Run ID not found
Internal Server Error
GET /public_api/netscan/v1/scan/run?id=1&fields=text HTTP/1.1
Host: api-cortex.paloaltonetworks.com
User-Agent: text
Accept: */*
{
"DATA": "Scan is in Running state"
}Launch a scan execution using a previously configured scan definition. Optionally override the target IP addresses for this specific run.
Scan launched successfully
Response returned after a scan action (launch, pause, resume, or abort)
Action result message
Scan launched successfully with run ID: 789Bad Request
User not Authorized
Not found
Internal Server Error
POST /public_api/netscan/v1/scan/run HTTP/1.1
Host: api-cortex.paloaltonetworks.com
User-Agent: text
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"request_data": {
"definition_id": 123,
"target": "1.2.3.4.0/12"
}
}{
"DATA": "Scan launched successfully with run ID: 789"
}Retrieve the current status of a specific scan run identified by the path parameter. Use the fields parameter to specify which fields to return in the response.
Scan run ID
Fields to include in the response (for example, status).
Scan status retrieved successfully
Response containing the current status of a scan run
Scan status message
Scan is in Running stateBad Request
User not Authorized
Run ID not found
Internal Server Error
GET /public_api/netscan/v1/scan/run/{id}?fields=text HTTP/1.1
Host: api-cortex.paloaltonetworks.com
User-Agent: text
Accept: */*
{
"DATA": "Scan is in Running state"
}Launch a scan execution using a scan definition specified by the path parameter. Optionally override the target IP addresses for this run.
Scan definition ID
Scan launched successfully
Response returned after a scan action (launch, pause, resume, or abort)
Action result message
Scan launched successfully with run ID: 789Bad Request
User not Authorized
Not found
Internal Server Error
POST /public_api/netscan/v1/scan/run/{id} HTTP/1.1
Host: api-cortex.paloaltonetworks.com
User-Agent: text
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"request_data": {
"definition_id": 123,
"target": "1.2.3.4.0/12"
}
}{
"DATA": "Scan launched successfully with run ID: 789"
}Create a new scan definition with detailed settings and validation options. A scan definition specifies the targets, schedule, credentials, and scan parameters used when launching scan runs.
Scan engine settings controlling port scanning, timeouts, and host discovery behavior
Port list ID to use
5Custom list of ports to scan (overrides port_list_id if provided)
SSH authentication port
22Disable CGI cache (0 = enabled, 1 = disabled)
1Possible values: Plugin timeout in minutes
5Checks read timeout in minutes
5Maximum number of hosts to scan simultaneously
30Maximum number of checks per host
4Scanner plugins timeout in seconds
3600Number of timeout retries
5Maximum attempts to open socket
5Ports that should not be scanned simultaneously (comma-separated)
139,445,3389,Services/ircStrict unauthenticated mode (0 = disabled, 1 = enabled)
0Possible values: Optimize test execution (0 = disabled, 1 = enabled)
1Possible values: Expand virtual hosts (0 = disabled, 1 = enabled)
1Possible values: Exclude fragile devices (0 = disabled, 1 = enabled)
1Possible values: Exclude printers (0 = disabled, 1 = enabled)
1Possible values: Enable safe checks (0 = disabled, 1 = enabled)
1Possible values: Disable Windows command execution (0 = disabled, 1 = enabled)
1Possible values: Disable WMI search (0 = disabled, 1 = enabled)
1Possible values: Ports to use for alive testing (comma-separated or ranges)
21-23,25,53,80,110-111,135,139,143,443,445,993,995,1723,3306,3389,5900,8080ID of existing definition (for updates)
123Vulnerability test configuration template ID
4Name of the scan definition
Weekly Production ScanDescription of the scan definition
Weekly security scan for production serversArray of network scanner UUIDs to use for this scan
["scanner-1","scanner-2"]Network ID
1Array of credential IDs for authenticated scanning
[1]Schedule cadence frequency
DAILYPossible values: Scheduled days as bitmask (127 = all days)
127Array of scheduled dates (for monthly cadence)
Schedule start date as Unix timestamp in milliseconds
1765083183326Timezone for scheduling (IANA timezone format)
America/Los_AngelesWhether to override global target exclusions
falseArray of target group IDs
Array of target hosts or IP ranges (CIDR notation)
["192.168.1.0/24","10.0.0.1-10.0.0.100"]Array of excluded targets
[""]Whether to enable scan reporting
trueNew scan definition created successfully.
ID of the created definition
123Success message
Scan created successfullyBad Request
User not Authorized
VT template not found or cannot create a new scan definition
Failed definition validation during scan definition creation.
Internal Server Error
POST /public_api/netscan/v1/scan/definition HTTP/1.1
Host: api-cortex.paloaltonetworks.com
User-Agent: text
Content-Type: application/json; charset=UTF-8
Accept: */*
Content-Length: 1236
{
"port_list_id": 5,
"scan_ports": [],
"auth_port_ssh": 22,
"disable_cgi_cache": "1",
"plugins_timeout": 5,
"checks_read_timeout": 5,
"max_hosts": 30,
"max_checks": 4,
"scanner_plugins_timeout": 3600,
"timeout_retry": 5,
"open_sock_max_attempts": 5,
"non_simult_ports": "139,445,3389,Services/irc",
"strict_unauthenticated": "0",
"optimize_test": "1",
"expand_vhosts": "1",
"exclude_fragile_devices": "1",
"exclude_printers": "1",
"safe_checks": "1",
"disable_win_cmd_exec": "1",
"disable_wmi_search": "1",
"alive_test_methods": [
"arp",
"icmp",
"tcp_ack"
],
"alive_test_ports": "21-23,25,53,80,110-111,135,139,143,443,445,993,995,1723,3306,3389,5900,8080",
"definition_id": 123,
"vt_config_id": 4,
"name": "Weekly Production Scan",
"description": "Weekly security scan for production servers",
"network_scanner_ids": [
"scanner-1",
"scanner-2"
],
"network": 1,
"credential_ids": [
1
],
"schedule_cadence": "DAILY",
"schedule_days": 127,
"schedule_dates": [],
"schedule_start_date": 1765083183326,
"schedule_time": {
"hour": 2,
"minute": 0,
"second": 0
},
"schedule_quiet_hours": [],
"schedule_timezone": "America/Los_Angeles",
"override_target_exclusions": false,
"target_ids": [],
"targets": [
"192.168.1.0/24",
"10.0.0.1-10.0.0.100"
],
"excluded_targets": [
""
],
"enable_report": true,
"asset_groups": [
{
"id": 1,
"name": "text",
"count": 1
}
]
}{
"definition_id": 123,
"message": "Scan created successfully"
}Send a control command to a running scan execution. Supported commands are ABORT (cancel the scan), PAUSE (pause the scan), and RESUME (resume a paused scan).
Unique identifier of the scan run
Command executed successfully
Response returned after a scan action (launch, pause, resume, or abort)
Action result message
Scan launched successfully with run ID: 789Bad Request
User not Authorized
Run ID not found or command cannot be performed
Internal Server Error
POST /public_api/netscan/v1/scan/run/{id}/command HTTP/1.1
Host: api-cortex.paloaltonetworks.com
User-Agent: text
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"request_data": {
"type": "ABORT"
}
}{
"DATA": "Scan launched successfully with run ID: 789"
}Last updated
Was this helpful?
