All Projects → fortinet-solutions-cse → Fortiosapi

fortinet-solutions-cse / Fortiosapi

Licence: apache-2.0
Python library aimed to be used by configuration management system using Fortigate/Fortios devices (REST API)

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Fortiosapi

Hyperapp
The tiny framework for building hypertext applications.
Stars: ✭ 18,724 (+21672.09%)
Mutual labels:  vdom
Backbone.vdomview
VirtualDOM-aware Backbone View
Stars: ✭ 23 (-73.26%)
Mutual labels:  vdom
Remark Vdom
plugin to compile Markdown to Virtual DOM
Stars: ✭ 44 (-48.84%)
Mutual labels:  vdom
Ivi
🔥 Javascript (TypeScript) library for building web user interfaces
Stars: ✭ 445 (+417.44%)
Mutual labels:  vdom
Domvm
DOM ViewModel - A thin, fast, dependency-free vdom view layer
Stars: ✭ 581 (+575.58%)
Mutual labels:  vdom
Muve
Muve is a micro library for building interactive javascript applications.
Stars: ✭ 11 (-87.21%)
Mutual labels:  vdom
Fard
🎃 Multi thread javascript framework - 多线程小程序引擎
Stars: ✭ 310 (+260.47%)
Mutual labels:  vdom
Neo
Create blazing fast multithreaded Web Apps
Stars: ✭ 1,219 (+1317.44%)
Mutual labels:  vdom
Nerv
A blazing fast React alternative, compatible with IE8 and React 16.
Stars: ✭ 5,409 (+6189.53%)
Mutual labels:  vdom
Wonders
🌈 Declarative JavaScript framework to build command-line applications.
Stars: ✭ 34 (-60.47%)
Mutual labels:  vdom
Hyperawesome
A curated list of awesome projects built with Hyperapp & more.
Stars: ✭ 446 (+418.6%)
Mutual labels:  vdom
Vhtml
Render JSX/Hyperscript to HTML strings, without VDOM 🌈
Stars: ✭ 556 (+546.51%)
Mutual labels:  vdom
Preact
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
Stars: ✭ 30,527 (+35396.51%)
Mutual labels:  vdom
Preact Habitat
Zero configuration Preact widgets renderer in any host DOM
Stars: ✭ 444 (+416.28%)
Mutual labels:  vdom
Asm Dom Boilerplate
A simple boilerplate to start using asm-dom without configuration.
Stars: ✭ 49 (-43.02%)
Mutual labels:  vdom
Lowlight
Virtual syntax highlighting for virtual DOMs and non-HTML things
Stars: ✭ 310 (+260.47%)
Mutual labels:  vdom
Puddles
Tiny vdom app framework. Pure Redux. No boilerplate.
Stars: ✭ 24 (-72.09%)
Mutual labels:  vdom
Karet
Karet is a library that allows you to embed Kefir observables into React VDOM
Stars: ✭ 81 (-5.81%)
Mutual labels:  vdom
Sauron
Sauron is an html web framework for building web-apps. It is heavily inspired by elm.
Stars: ✭ 1,217 (+1315.12%)
Mutual labels:  vdom
Tweed
An Object Oriented UI Library
Stars: ✭ 31 (-63.95%)
Mutual labels:  vdom

fortiosAPI Overview

Opensource python library to configure Fortigate/Fortios devices (Fortigate REST API)

Ready for config management.

Compare to the REST API there a few add-ons: In addition to get,put,post,delete methods there is a set which will try to post and if failing will put and collect the mkey directly. The lib will also find the mkey for you

Examples

You can find and propose examples here: https://github.com/fortinet-solutions-cse/fortiosapi-examples Separated to avoid cluttering those who integrate the fortiosapi module.

### New overlay configuration

You now have an overlayconfig call which can be pass a complex configuration change in yaml. Including multiple endpoints (name/path) as the simple example below shows:

antivirus:
  profile:
    apisettree:
      "scan-mode": "quick"
      'http': {"options": "scan avmonitor",}
      "emulator": "enable"
firewall:
  policy:
    67:
      'name': "Testfortiosapi"
      'action': "accept"
      'srcintf': [{"name": "port1"}]
      'dstintf': [{"name": "port2"}]
      'srcaddr': [{"name": "all"}]
      'dstaddr': [{"name": "all"}]
      'schedule': "always"
      'service': [{"name": "HTTPS"}]
      "utm-status": "enable"
      "profile-type": "single"
      'av-profile': "apisettree"
      'profile-protocol-options': "default"
      'ssl-ssh-profile': "certificate-inspection"
      'logtraffic': "all"

The behaviour is to change the parameters at the higher level in the CMDB tree first then do a serie of set on the tables.

Will fail if one of the set fails.

Order in the yaml is preserved.

Login methods

User/password

Token (api key) documented in the Fortigate API Spec that you can find if having an account on http://fndn.fortinet.net/

Multi vdom

In multi vdom environment use vdom=global in the API call. As it is a reserved word the API will switch to use the global=1 and take care of the differences in the repsonses.

Schema

There is a get_schema call and an example to get the schema of the differents methods to ease writting them.

License (5.6)

A rest call to check and force license validation check starting with 5.6 See license. usage of schema and mkey for every call for 5.6

License validity is now checked at login

Versions

Test driven development

In tests folder you will find a tox based set of tests as examples. The test_fortiosapi_virsh need you to have virsh access, especially to the console. This allow to perform actions automatically from the CLI and check API calls actual results. Other tests are welcomed.

Files upload/download

You will find the calls to exchange files (config, logs, licenses) with Fortigate in this LIB

Known Usage

Fortiosapi library is used in Home-Assistant, Fortinet Ansible modules and in Cloudify plugins.

Maintained mainly by Fortinet employees.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].