post
https://sandbox.saner.secpod.com/AncorWebService/perform
This method is used to create remediation jobs for misconfiguration patches.
| Key | Meaning | Mandatory | Data Type |
|---|---|---|---|
| accountid | The account ID or name under which the remediation job is created | Yes | string |
| name | The name of the remediation job | Yes | string |
| starttime | The start time of the remediation job in HH:MM:AM/PM format (e.g., 03:24:PM) | Yes | string |
| endtime | The end time of the remediation job in HH:MM:AM/PM format (e.g., 03:50:PM) | No | string |
| startwindowtime | The start window time for the remediation job in HH:MM:AM/PM format (e.g., 03:30:PM) | Yes | string |
| forcereboot | Whether to force reboot after remediation; accepted values: true or false | No | string |
| schedule | The scheduled date for the remediation job in YYYY-MM-DD format (e.g., 2024-12-29) | Yes | string |
| device | List of target device names on which the remediation job will run | Yes | array |
| remjobpatchesinfo | JSON array containing asset name and associated patch details including patchid, eri, and reboot flag | Yes | array |
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.Compliance.createMisconfigurationRemediationJob(
accountid="Demo Account",
name="RemJob1",
starttime="03:24:PM",
endtime="05:25:PM",
startwindowtime="03:30:PM",
schedule="2026-03-15",
device=["device 1","device 2"],
remjobpatchesinfo={
"assetname": "Ubuntu 18.04",
"remjobpatchinfo": [
{
"patchid": "cce-92627-9-patch.sh",
"eri": "eri:com.secpod.eri:14173",
"reboot": "FALSE"
}]
})
print(response)
client.close()Requires Python 3.9 or later.