Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 717 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 717 Bytes

Usage

NOTE: All API calls automatically handle pagination.

import sentineloneapi

client = sentineloneapi.Client(
                    username='[email protected]',
                    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'
    })