post
https://sandbox.saner.secpod.com/AncorWebService/perform
List one device's jobs in brief; remediation jobs are not included.
Remediation (Rem Job) entries are absent from this summary whatever tool filter is supplied: a host whose Device Job Info listing held six jobs returned one here, and the five remediation jobs were not among them. Use that endpoint for a complete list of a device's jobs.
This method feature is used to retrieve job summary details for a given host.
| Key Name | Meaning | Mandatory | Data Type |
|---|---|---|---|
| hostname | Hostname of the device for which job summary is requested | Yes | string |
| accountname | Name of the account associated with the device | Yes | string |
| tool | Tool filter to retrieve job summary (e.g., PM, CM) | No | 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.Device.getJobSummary(
hostname="DemoHost",
accountname="DemoAccount"
)
print(response)
client.close()Requires Python 3.9 or later.