Fortigate-api

Latest version: v2.0.2

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.0.2

------------------
**Changed:** FortiGateBase.login() for token check /api/v2/monitor/system/status

**Changed:** FortiGateBase._get_token_from_cookies() cookie_prefix = "ccsrftoken"

2.0.1

------------------
**Fixed:** FortigateAPI `get`, `update` methods for objects without UID

2.0.0

------------------

The package has been fully refactored.
The skeleton has been changed to make it possible to implement any endpoint
in a manner similar to `FortiOS REST API`_ documentation.

Breaking changes
----------------

**Added:** FortiGateAPI object (replacement for FortigateAPI object). This object contains
connectors to all Configuration (cmdb) REST API endpoints. For example old `FortigateAPI.address`
connector have been transformed to `FortiGateAPI.cmdb.firewall.address`. Other connectors
are transformed in a similar manner.

**Added:** FortiGate object (replacement for Fortigate object). It is a Python wrapper for
the FortiOS REST API. The `get` methods have been significantly changed to support responses
with any data type.

**Removed:** FortigateAPI object (replaced by FortiGateAPI object).

**Removed:** Fortigate object (replaced by FortiGate object).

**Removed:** SSH Netmiko connector.

**Removed:** CiscoConfParse adapted for Fortigate.

1.4.0

------------------

**Added:** readthedocs

**Added:** FortigateAPI.vdoms

**Fixed:** FortigateAPI.<object>.create().
Return <Response [500]> if Object already exist. Before was <Response [200]>.
The behavior is the same as in the Fortigate POST method.

**Fixed:** FortigateAPI.<object>.delete(filter).
Return <Response [404]> if no objects have been found by filter.

**Fixed:** FortigateAPI.<object>.update().
Return <Response [404]> if Object is not exist. Before was <Response [200]>.
The behavior is the same as in the Fortigate PUT method.

1.3.1

------------------

**Fixed:** quoted parameters, FortigateAPI.delete(filter="name=10.0.0.1/32").

1.3.0

------------------

**Added:** Fortigate.get_l().

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.