fortiedr

This Fortiedr module is an open-source Python library that simplifies interaction with the FortiEDR Cloud API.


License
MIT
Install
pip install fortiedr==3.7.3

Documentation

FortiEDR Python module

An open-source Python package intended to help interact with FortiEDR API.

It was based and tested in FortiEDR Cloud version 6.2.0.0436.

See changelog for more.

How do I install the FortiEDR Python module?

Be sure you have at least Python 3.8 and PIP (https://pypi.org/project/pip/) installed.

After downloading this tool, use pip to install dependencies using the following command:

pip install fortiedr

Or you can download it directly from this repo:

git clone https://github.com/rafaelfoster/fortiedr.git

cd fortiedr

pip3 install .

First steps with fortiedr

First of all, create a Rest API user on FortiEDR Management console:

After creating a user with privileges for interacting with FortiEDR API, you can start using the package by importing the modules you want to your code:

import fortiedr

Once imported, you need to authenticate with Management Host using valid credentials, as such:

organization = "ORGANIZATION_NAME"

authentication = auth(
    user="USER",
    passw="PASSWORD",
    host="FORTIEDR_HOST.COM", # use only the hostname, without 'https://' and '/'.
    org=organization          # Add organization IF needed. Case sensitive
)

If the authentication is successful, you can proceed by interacting with the API, like:

collectors = fortiedr.Collectors()

data = collectors.list_collectors()

How do I use FortiEDR Python module?

After credentials are defined and successfully authenticated, you are now able to start consuming FortiEDR API.

The "example.py" file contains some examples of how to use the package.

How to contribute, provide feedback, or report bugs?

You can e-mail me at rafaelgfoster at gmail (.) com.

Enjoy it!