Giter VIP home page Giter VIP logo

gatepy's Introduction

gatepy - FortiGate Automation using REST API

gatepy ultimate goal is to be a python script to facilitate the FortiGate administration using REST API, some use cases would include mass object creation, processing CSV files to quickly create URL lists and more. Feel free to suggest new use cases at the Issues section.

The first releases will be in various use cases of self-contained scripts, after we have enough maturity the idea is to pack it all in a single tool that will call whatever auxiliar script is needed, but also give the option to use the task script regardless of a master script to control it.

How To Use

To clone and run the examples you'll need:

From your command line:

# Pull and start docker image
$ docker pull ubuntu:18.04
$ docker run --name=gatepy_dev -it ubuntu:18.04

# Install packages
$ apt update
$ apt install git python3 python3-pip python-dev libssl-dev libffi-dev vim

# Clone this repository
$ git clone https://github.com/barbosm/gatepy

# Go into the repository
$ cd gatepy

# Install dependencies
$ pip3 install -r requirements.txt

# Edit _host to your FG details (IP and credentials)
$ vim examples/_host

# Load environment variables
$ source examples/_host

# Run the examples
$ python3 examples/monitor_system_status.py

Prerequisites

  • Change IP and credentials on _host file
  • Install python dependencies

Documentation

Environment

Tested on:

  • Mac OS X 10.10
  • python 3.5.2
  • FortiOS 6.0
  • fortiosapi 0.9.91

It should work on different environments, just keep in mind the versions above.

gatepy's People

Contributors

barbosm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.