Taegis Python SDK
Project description
Taegis SDK for Python
The Taegis SDK is a Python library for interfacing with the GraphQL APIs in Taegis.
Prerequisites
- Python 3.8 or higher.
Authentication
- Set
CLIENT_IDandCLIENT_SECRETenvironment variables as described in the Taegis XDR Documenation.
OR
- Login using username/password with mfa upon service creation
OR
- Device Code SSO
Installation
python -m pip install taegis-sdk-python
Using the SDK
To use the SDK, you must first import the GraphQLService
from taegis_sdk_python import GraphQLService
from pprint import pprint as pp
service = GraphQLService()
Now that you have the GraphQLService, you can make requests and process responses for Taegis XDR Services. The following example uses the Investigations Service to send a query to get all available investigations
result = service.investigations.query.investigations_search(
page=1,
per_page=3,
query="WHERE deleted_at IS NOT NULL EARLIEST=-90d"
)
pp(result)
result = service.tenants.query.tenants(tenants_query=TenantsQuery(
max_results=10,
page_num=1,
))
pp(result)
results = service.events.subscription.event_query(
query="FROM process EARLIEST=-1d",
options=EventQueryOptions(
max_rows=20,
page_size=10,
skip_cache=True,
),
)
pp(results)
print()
try:
next_page = next(
iter(
{
result.next
for result in results
if result.next
}
)
)
except StopIteration:
next_page = None
if next_page:
results = service.events.subscription.event_page(page_id=next_page)
pp(results)
Getting Started Exploring the Schema
from taegis_sdk_python import GraphQLService
service = GraphQLService()
schema = service.core.get_sync_schema()
For more in depth analysis see: Exploring the Schema
For more information see the Getting Started
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taegis_sdk_python-1.6.10.tar.gz.
File metadata
- Download URL: taegis_sdk_python-1.6.10.tar.gz
- Upload date:
- Size: 234.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.11.9 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
774308df4411f5646529782dec3d01dc000303ac90f9935787176f9efc29f22a
|
|
| MD5 |
ef0a522ba57559ec5842fc0f7dc7a9c2
|
|
| BLAKE2b-256 |
1edf0682f13a78e155964c5277f342c191ee213ac1d8ab9e55b102c3df13de3c
|
File details
Details for the file taegis_sdk_python-1.6.10-py3-none-any.whl.
File metadata
- Download URL: taegis_sdk_python-1.6.10-py3-none-any.whl
- Upload date:
- Size: 413.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.11.9 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d52e82684ca9241aae3ae8ab3cbed40f6a339499b29c31cbf3d0fd0518b155d5
|
|
| MD5 |
1c829ccd59ce62c3345063b582f50336
|
|
| BLAKE2b-256 |
4d9f2bd624a5eae59af6097d4c6b4249c1275a7bc9aa7ca22993379034612e90
|