Update Network Scan Config

This method allows users to update network scan config. Account and config names are mandatory inputs for this method.

KeyMeaningMandatoryData Type
accountAccount name or IDYesstring
confignameExisting network scan configuration nameYesstring
newconfignameNew configuration nameNostring
enableudpportsEnable UDP ports option (TRUE or FALSE)Nostring
descriptionDescription of the configurationNostring
targetsTarget IP ranges for scanningNoarray
excludetargetsTargets excluded from scanningNoarray
scheduleSchedule frequency (daily, weekly, monthly)Nostring
starttimeScan start time (format: HH:MM:AM/PM)Nostring
endtimeScan end time (format: HH:MM:AM/PM)Nostring
tcpportsTCP ports for scanningNoarray
udpportsUDP ports for scanningNoarray
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 fieldNostring
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.updateNetworkScanConfig(
  account="Demo Account",
  configname="test_config"
)

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