post
https://sandbox.saner.secpod.com/AncorWebService/perform
List every device in an account, with system details for each.
This is the account-wide device inventory endpoint. Send only accountname to enumerate every device under that account; send hostnames to narrow the result to machines you can already name. Use it to answer "which devices are in this account" and "how many endpoints are there".
Each device in the response carries its IP address, MAC address, memory, disk size, serial number, systemUUID, CPU information, operating system details and tags.
To look up one device you can already identify, by hostname, IP, MAC or serial number, use Get a Single Device instead — that endpoint cannot enumerate an account.
| Key Name | Meaning | Mandatory | Data Type |
|---|---|---|---|
| accountname | Name of the account for which device system details are requested | Yes | string |
| hostnames | List of hostnames to fetch specific device details (if not provided, all devices are fetched) | 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.getBasicSystemDetails(
accountname="DemoAccount"
)
print(response)
client.close()Requires Python 3.9 or later.