post
https://sandbox.saner.secpod.com/AncorWebService/perform
Update an agent configuration used by every device assigned to it.
The change applies to every device using this configuration; it cannot target an individual device. Only the settings you supply are changed, so omitting a parameter leaves its current value alone.
This method allows you to update a Saner Agent configuration settings. It requires configuration setting name (configname) and allows updating description and other configuration key values. The input for "hostpeerverification" must be true for cloud server.
| Key | Meaning | Mandatory | Data Type |
|---|---|---|---|
| configname | Name of the configuration to be updated | Yes | string |
| configdesc | Updated configuration description | No | string |
| runmode | Agent run mode setting. Accepted values: Low, Full throttle (note the lowercase "t") | No | string |
| scantype | Scan type configuration | No | string |
| scheduledscantime | Scheduled scan time | No | string |
| scheduledownloadtime | Scheduled download time | No | string |
| autoremediation | Auto remediation setting. Accepted values: on, off (case-insensitive) | No | string |
| remediationjobpollinterval | Remediation job poll interval | No | string |
| vendorproductpatchserver | Vendor product patch server type | No | string |
| thirdpartyproductpatchservertype | Third-party patch server type | No | string |
| localresourcesurl | Local resources URL (must include protocol) | No | string |
| vendorproductinstallationtype | Vendor product installation type | No | string |
| thirdpartyproductinstallationtype | Third-party installation type | No | string |
| secondarypatchserverwhen | Condition for using secondary patch server | No | string |
| bufferpatchesenabled | Enable or disable buffer patches | No | string |
| proxyurl | Proxy URL | No | string |
| proxyport | Proxy port | No | string |
| proxyusername | Proxy username | No | string |
| proxypassword | Proxy password | No | string |
| agentautoupgrade | Agent auto-upgrade setting. Accepted values: enabled, disabled. manual is refused on deployments where it is not supported | No | string |
| auditlog | Audit log configuration. Accepted values: on, onwithdebug | No | string |
| missedscanaction | Action for missed scan | No | string |
| agentinteractionmode | Agent interaction mode. Accepted values: Live, Poll, capitalised exactly. Note the response reports this field lowercase (poll), which is not accepted on write | No | string |
| hostpeerverification | Host peer verification (must be true for cloud server) | 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.Configuration.update(
configname="DemoConfig",
configdesc="New Config description"
)
print(response)
client.close()Requires Python 3.9 or later.