post
https://sandbox.saner.secpod.com/sanerapi/v1.0/AE/assetlist/addblacklistedassets
Adds one or more applications (assets) to the blacklist.
Blacklisted assets represent applications that are restricted, unauthorized, or pose a security risk within the environment. When a blacklisted application is detected on any endpoint, it is flagged in the Asset Exposure (AE) dashboard, enabling administrators to identify violations and take appropriate actions.
| Key | Meaning | Mandatory | Data Type |
|---|---|---|---|
| account | The account identifier under which the operation is performed | Yes | string |
| organization | The organization name within the account | Yes | string |
| assets | List of application assets to be blacklisted | Yes | array |
| applicationname | Name of the application to blacklist | Yes | string |
| version | Version of the application | Yes | string |
| publisher | Publisher of the application | 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.AssetExposure.addBlackListedAssets(
account="Demo Account",
organization="Demo Org",
assets=[
{
"applicationname": "Asset 1",
"version": "1.66.56",
"publisher":""
},
{
"applicationname": "Asset 2",
"version": "1.64.9",
"publisher":""
}
]
)
print(response)
client.close()Requires Python 3.9 or later.