post
https://sandbox.saner.secpod.com/AncorWebService/perform
This method allows users to update network scan config. Account and config names are mandatory inputs for this method.
| Key | Meaning | Mandatory | Data Type |
|---|---|---|---|
| account | Account name or ID | Yes | string |
| configname | Existing network scan configuration name | Yes | string |
| newconfigname | New configuration name | No | string |
| enableudpports | Enable UDP ports option (TRUE or FALSE) | No | string |
| description | Description of the configuration | No | string |
| targets | Target IP ranges for scanning | No | array |
| excludetargets | Targets excluded from scanning | No | array |
| schedule | Schedule frequency (daily, weekly, monthly) | No | string |
| starttime | Scan start time (format: HH:MM:AM/PM) | No | string |
| endtime | Scan end time (format: HH:MM:AM/PM) | No | string |
| tcpports | TCP ports for scanning | No | array |
| udpports | UDP ports for scanning | No | array |
| portoption | Port 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 field | No | string |
Python SDK code
Install:
pip install secpod-saner-sdkCall 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.