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.
Metadata
Release files for qradar4py 3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qradar4py-3.0.tar.gz | 47.0 kB | Without provenance | Details for qradar4py-3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qradar4py-3.0-py3-none-any.whl | Python 3 | none | any | Details for qradar4py-3.0-py3-none-any.whl |
Total release size: 114.8 kB
Release files / qradar4py-3.0.tar.gz
| Download URL | qradar4py-3.0.tar.gz |
|---|---|
| Size | 47.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e1734c1820fabc2134d6fde8c185649d64c6cc8c66c4906cbee3d8ba32580ee
|
|
BLAKE2b-256 checksum How to use checksums |
7d0b586ffd4a194190e121971d9427ecb700a7902ceeaf1e966835a01891b26a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / qradar4py-3.0-py3-none-any.whl
| Download URL | qradar4py-3.0-py3-none-any.whl |
|---|---|
| Size | 67.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b93ecb894df307a4f496f36e400385c3fe9ad26962bdbedc97d384ab3f6c305
|
|
BLAKE2b-256 checksum How to use checksums |
701368c3624b0fc697847817d7e8f59f6d66170c952fdbafb78fbf71735ab232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for qradar4py 3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.