Add Network Scan Config

This method allows users to add a network scanner config. Supported schedule field values are “daily”, “weekly” and “monthly”.

KeyMeaningMandatoryData Type
accountAccount name or IDYesstring
confignameName of the network scan configurationYesstring
descriptionDescription of the network scan configurationNostring
targetsTarget IP ranges for scanningYes (either targets or target)array
targetTarget domain name for scanningYes (either targets or target)string
excludetargetsTargets excluded from scanningNoarray
enableudpportsEnable UDP ports option (TRUE or FALSE)Nostring
tcpportsTCP ports to scan. Applies independently of portoption, so supplying it is how a custom TCP port list is scannedNoarray
udpportsUDP ports to scan, used with enableudpports. Applies independently of portoptionNoarray
portoptionPort selection option. Accepted value: default ports, matched case-insensitively and returned as Default Ports. A custom port list is supplied through tcpports/udpports rather than through this fieldYesstring
scheduleSchedule frequency (daily, weekly, monthly)Nostring
starttimeScan start time (format: HH:MM:AM/PM)Nostring
endtimeScan end time (format: HH:MM:AM/PM)Nostring
monthoftheyearMonth of the year (numeric value)Nostring
weekofthemonthWeek of the month (numeric value)Nostring
dayoftheweekDay of the week (numeric value)Nostring
Python SDK code

Install:

pip install secpod-saner-sdk

Call this endpoint:

from saner.cvem import CvemClient

client = CvemClient(
    api_key="<YOUR_API_KEY>",
    accountid="<YOUR_ACCOUNT_ID>",
    base_url="https://saner.secpod.com"
)

response=client.NetworkScanner.addNetworkScanConfig(
  account="Demo Account",
  configname="test_config",
  targets=["172.16.15.39","172.16.15.96"],
  portoption="default ports"
)

print(response)
client.close()

Requires Python 3.9 or later.

Query Params
string
required

Account name used to identify the User

Body Params
request
object
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json