post
https://sandbox.saner.secpod.com/AncorWebService/perform
Look up one named job on a device, with patch-level results when it is a patch job.
The tool, jobname and jobtype arguments are all required, so this endpoint resolves one job you can already name rather than listing a device's jobs. Use Device Job Info to discover job names first.
This method is used to retrieve all the job details created for a host in a nested model.
| Key Name | Meaning | Mandatory | Data Type |
|---|---|---|---|
| hostname | Hostname of the device for which job details are requested | Yes | string |
| accountname | Name of the account associated with the device | Yes | string |
| tool | Tool used to filter job details (e.g., PM, CM) | Yes | string |
| jobname | Name of the job to retrieve detailed information | Yes | string |
| jobtype | Type of the job (e.g., Rem Job, IR, Automation Rule) | Yes | 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.Device.getJobDetails(
hostname="DemoHost",
accountname="DemoAccount",
tool="PM",
jobname="DemoJobName",
jobtype="DemoJobType"
)
print(response)
client.close()Requires Python 3.9 or later.