Metadata-Version: 2.1
Name: fortiedr
Version: 3.9
Summary: This Fortiedr module is an open-source Python library that simplifies interaction with the FortiEDR Cloud API.
Author: Rafael Foster
Author-email: Rafael Foster <rafaelgfoster@gmail.com>
Project-URL: Homepage, https://github.com/rafaelfoster/fortiedr
Project-URL: Issues, https://github.com/rafaelfoster/fortiedr/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

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

See [changelog](CHANGELOG.md) 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:
 * Create a user with Rest API permissions on FortiEDR Console. You can check this doc for help: https://docs.fortinet.com/document/fortiedr/6.2.0/administration-guide/776468/users

 * After creating the user, this newly created user must log in to the Central Manager console and change their initial password before they can be used by Rest API calls.

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!
