Exclude Patch/Asset

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.

KeyMeaningMandatoryData Type
account_nameAccount nameYesstring
policy_nameUnique policy nameYesstring
item_typeType of item (PATCH or ASSET)Yesstring
itemsList of patches or assetsYesarray
scopeTypeScope type (account/group/Devices)Yesstring
selectedScopeItemsSelected scope entitiesYesarray
module_typeModule type (e.g., PM)Yesstring
reasonReason for exclusion (Not Applicable/Risk Accepted)Yesstring
daysNumber of days for exclusionYesstring
descDescriptionNostring
commentsAdditional commentsNostring
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.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.

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