Update Configuration

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.

KeyMeaningMandatoryData Type
confignameName of the configuration to be updatedYesstring
configdescUpdated configuration descriptionNostring
runmodeAgent run mode setting. Accepted values: Low, Full throttle (note the lowercase "t")Nostring
scantypeScan type configurationNostring
scheduledscantimeScheduled scan timeNostring
scheduledownloadtimeScheduled download timeNostring
autoremediationAuto remediation setting. Accepted values: on, off (case-insensitive)Nostring
remediationjobpollintervalRemediation job poll intervalNostring
vendorproductpatchserverVendor product patch server typeNostring
thirdpartyproductpatchservertypeThird-party patch server typeNostring
localresourcesurlLocal resources URL (must include protocol)Nostring
vendorproductinstallationtypeVendor product installation typeNostring
thirdpartyproductinstallationtypeThird-party installation typeNostring
secondarypatchserverwhenCondition for using secondary patch serverNostring
bufferpatchesenabledEnable or disable buffer patchesNostring
proxyurlProxy URLNostring
proxyportProxy portNostring
proxyusernameProxy usernameNostring
proxypasswordProxy passwordNostring
agentautoupgradeAgent auto-upgrade setting. Accepted values: enabled, disabled. manual is refused on deployments where it is not supportedNostring
auditlogAudit log configuration. Accepted values: on, onwithdebugNostring
missedscanactionAction for missed scanNostring
agentinteractionmodeAgent interaction mode. Accepted values: Live, Poll, capitalised exactly. Note the response reports this field lowercase (poll), which is not accepted on writeNostring
hostpeerverificationHost peer verification (must be true for cloud server)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.Configuration.update(
    configname="DemoConfig",
    configdesc="New Config description"
)

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