post
https://sandbox.saner.secpod.com/AncorWebService/perform
Download a ZIP archive of one device's vulnerability and compliance findings.
A successful response is returned as bytes rather than a parsed dict.
Fetch vulnerability and compliance details for a specific device.
The response is returned as a ZIP file containing the device report.
| Key | Meaning | Mandatory | Data Type |
|---|---|---|---|
| accountid | Account ID | Yes | string |
| hostname | Device hostname | Yes | string |
| apifilters | Advanced tag filtering | No | object |
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.Device.getDetails(
accountid="Default",
hostname="windows 7",
apifilters={
"tags":
{
"in": {
"ip_address": ["192.168.1.1"]
}
}
})
if isinstance(response, bytes):
with open("report.zip", "wb") as f:
f.write(response)
else:
print(response)
client.close()Requires Python 3.9 or later.