Giter Site home page Giter Site logo

fortigateapi's People

Contributors

admiralspark avatar davidchayla avatar hutchris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fortigateapi's Issues

Feature Request

Hey,

thx for this great API.

I would like to see if you could add 1 more feature.

Policy search like for all disabled policies for example.

If i use your SearchFwPolicyID it stops at the first matching rule and thats it but i would like see every rule in the PolicyPackage which would match.

Is that something you could add?

thx in advance

Creating a device

I am trying to create a device (object) with it's mac address and then trying to add it to a device group.
I could not find any information related to it in the REST API documentation.
This can be done like this in the command line:

config user device
edit device_name
   set mac AA:AA:AA:AA:AA
   set type windows-pc
...
next
end

And then adding it to a group:

config user device-group
edit group_name
   set member "device_name"
   next
end
...

Also if a device has more than one mac (ethernet and wifi), two separate devices need to be created, link then and set one as default.

Can this be done adapting your code? Thanks.

Update Address Group

fg.GetFwAddressGroup("Block")

fetches me properly the details as

"name":"Block", "q_origin_key":"Block", "uuid":"asdfasdf", "member":[ { "name":"TEST1", "q_origin_key":"TEST1" } ],

However when I try to update using the code snippet below

ips_to_add_list = [] ips_to_add_list.append("1.1.1.1") ips_to_add_list.append("2.2.2.2") response = fg.SetFwAddressGroup("Block",ips_to_add_list) print(response)

I get error "500". Not sure where my mistake is. Any help would be appreciated.

Feature Request - Policy Route

You got the Fortigate Rest API Docs? where i can find it?

I tryed to add the functions for policy route entrys and copy paste from you the static route functions.
i can read and Delete the Policy route with you self.ApiXXX functions, but on add i got a problem

should the payload be equal to thhe console commands?
maybe you can give me some hint, or implement it in your Awesome lib

Thanx in advance

Not working with vdom disabled.

I have a Fortigate 100D without vdom enabled, but I can't get the following test to work:

import FortigateApi
fg = FortigateApi.Fortigate('192.168.1.1', 'root', 'admin', 'password')
fg.AddFwAddress('srv-A','10.1.1.1/32')
fg.GetFwAddress('srv-A')
fg.DelFwAddress('srv-A')

All I got is:

login status: 200

I tried to change vdom from root to ' ' but no joy. Any idea?

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.