fragtastic / sentinelone-api-python

API for SentinelOne in Python >=3.5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

NOTE: All API calls automatically handle pagination.

import sentineloneapi

client = sentineloneapi.Client(
                    username='username@domain.tld',
                    password='PASSWORD_HERE',
                    url='example.sentinelone.net'
                )

# One or the other.
# Username/password and apitoken are mutually exclusive.

client = sentineloneapi.Client(
                    apitoken='TOKEN_HERE',
                    url='example.sentinelone.net'
                )

client.authenticate()

data, errors = client.CountAgents(payload={'computerName__like': 'test'})

data, errors = c.ListUsers(payload={
        'skipCount': True,
        'query': 'Test'
    })

About

API for SentinelOne in Python >=3.5


Languages

Language:Python 99.4%Language:Dockerfile 0.4%Language:Shell 0.2%