post
https://sandbox.saner.secpod.com/AncorWebService/perform
Exclude one or more patches or applications from Saner PM results for a given scope and duration.
This covers patches and applications in Saner PM. To exclude a CVE from Saner VM instead, use Exclude Vulnerability; the two share one endpoint but take different item types and reason values.
Exclude a Patch or Asset.
This API allows administrators to exclude either a specific patch or an entire asset/application from visibility and remediation based on the defined scope.
| Key | Meaning | Mandatory | Data Type |
|---|---|---|---|
| account_name | Account name | Yes | string |
| policy_name | Unique policy name | Yes | string |
| item_type | Type of item (PATCH or ASSET) | Yes | string |
| items | List of patches or assets | Yes | array |
| scopeType | Scope type (account/group/Devices) | Yes | string |
| selectedScopeItems | Selected scope entities | Yes | array |
| module_type | Module type (e.g., PM) | Yes | string |
| reason | Reason for exclusion (Not Applicable/Risk Accepted) | Yes | string |
| days | Number of days for exclusion | Yes | string |
| desc | Description | No | string |
| comments | Additional comments | 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.Patch.excludeVulnerability(
account_name="Demo Account",
policy_name="policy0001",
item_type="PATCH",
items=[
"apt 2.8.3"
],
scopeType="Devices",
selectedScopeItems=["ubuntu"],
module_type="PM",
reason="Risk Accepted",
days="1"
)
print(response)
client.close()Requires Python 3.9 or later.