2025-07-23 18:47:48 +00:00
|
|
|
import os
|
|
|
|
|
from pyhuntress import HuntressSIEMAPIClient
|
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
|
|
siem_url = os.getenv('siem_url')
|
|
|
|
|
publickey = os.getenv('publickey')
|
|
|
|
|
privatekey = os.getenv('privatekey')
|
|
|
|
|
|
|
|
|
|
# init client
|
|
|
|
|
siem_api_client = HuntressSIEMAPIClient(
|
|
|
|
|
siem_url,
|
|
|
|
|
publickey,
|
|
|
|
|
privatekey,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
#account = siem_api_client.account.get()
|
|
|
|
|
#print(account)
|
|
|
|
|
|
|
|
|
|
#actor = siem_api_client.actor.get()
|
|
|
|
|
#print(actor)
|
|
|
|
|
|
|
|
|
|
#agents = siem_api_client.agents.get()
|
|
|
|
|
#print(agents)
|
|
|
|
|
|
2025-07-23 18:50:22 +00:00
|
|
|
#billingreports = siem_api_client.billing_reports.get()
|
|
|
|
|
#print(billingreports)
|
2025-07-23 18:47:48 +00:00
|
|
|
|
2025-07-23 18:50:22 +00:00
|
|
|
#incidentreports = siem_api_client.incident_reports.get()
|
|
|
|
|
#print(incidentreports)
|
2025-07-23 18:47:48 +00:00
|
|
|
|
2025-07-23 18:50:22 +00:00
|
|
|
#organizations = siem_api_client.organizations.get()
|
|
|
|
|
#print(organizations)
|
2025-07-23 18:47:48 +00:00
|
|
|
|
2025-07-23 18:50:22 +00:00
|
|
|
#reports = siem_api_client.reports.get()
|
|
|
|
|
#print(reports)
|
2025-07-23 18:47:48 +00:00
|
|
|
|
2025-07-23 18:50:22 +00:00
|
|
|
#signals = siem_api_client.signals.get()
|
|
|
|
|
#print(signals)
|
2025-07-23 18:47:48 +00:00
|
|
|
|
|
|
|
|
#paginated_agents = siem_api_client.agents.paginated(1, 10)
|
|
|
|
|
#print(paginated_agents)
|