Skip to main content

QRadarAPI Client written in Python

Project description

QRadar API Client written in Python

This is a wrapper around the REST-API of QRadar. This includes some undocumented endpoints, that may not work as expected.
All the information for the various endpoints were pulled from version 13.1.
If you find any bugs please open an issue or a pull request.

A word of warning

qradar4py is work in progress and should be treated as a software in beta, especially regarding the "undocumented" API endpoints.

Installation

sudo pip3 install qradar4py
# OR
cd qradar4py && sudo python3 setup.py install

Usage

Just a very basic sample on how to get the IDs of up to 10 offenses that are not closed.

from qradar4py.api import QRadarApi

# Initalize the API with the URL, your API token and whether the certificate should be checked.
api = QRadarApi("<URL>", "<API_TOKEN>", version='13.1', verify=True)
# Get all offenses
status_code, response = api.siem.get_offenses(filter='status != CLOSED', 
                                              Range='items=0-50', 
                                              fields='id')

print(status_code, response)
# 200 [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}]

Mapping

Check the "Interactive API" on QRadar to see what endpoints are available in your version.
Check the documentation to get a mapping from endpoint to method.

Disclaimer

I am in no way affiliated with IBM.
QRadar is a registered trademark by IBM.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qradar4py-3.0.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

qradar4py-3.0-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

Details for the file qradar4py-3.0.tar.gz.

File metadata

  • Download URL: qradar4py-3.0.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for qradar4py-3.0.tar.gz
Algorithm Hash digest
SHA256 3e1734c1820fabc2134d6fde8c185649d64c6cc8c66c4906cbee3d8ba32580ee
MD5 72a59911cd5f72a53ffa712368ec1043
BLAKE2b-256 7d0b586ffd4a194190e121971d9427ecb700a7902ceeaf1e966835a01891b26a

See more details on using hashes here.

File details

Details for the file qradar4py-3.0-py3-none-any.whl.

File metadata

  • Download URL: qradar4py-3.0-py3-none-any.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for qradar4py-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b93ecb894df307a4f496f36e400385c3fe9ad26962bdbedc97d384ab3f6c305
MD5 84e0b40132636b52a088986c51315653
BLAKE2b-256 701368c3624b0fc697847817d7e8f59f6d66170c952fdbafb78fbf71735ab232

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page