Git Product home page Git Product logo

fmcapi's Introduction

fmcapi

Provide an "easier to use" way of interacting with the Cisco FMC's API. There is a LOT that has yet to be done in order to make this project have "feature parity" with all that can be done with the FMC's API. That said, what is here works!

The fmcapi is published to PyPI. This means you can install it via pip (pip3 install fmcapi)

Features

  • Creation and maintenance of the connection with the FMC. This basically is care and feeding of the token.

  • Register devices with FMC.

  • Deploy changes to FMC managed devices.

  • GET/POST/PUT/DELETE of:

    • Host Objects
    • Network Objects
    • Range Objects
    • Port Objects
    • Security Zones
    • URL Objects
    • Access Control Policy (ACP)
    • ACP Rules
    • VLAN Tags
  • Other features:

    • GET Intrusion Policy
    • GET all Network Objects
    • GET VariableSet(s)
    • Register FTD Devices
    • Deploy changes to FMC to affected managed devices.
  • This is now an installable Python package via pip! I'm heavily developing this code so you might want to issue the command pip3 install -U fmcapi to update your installed version.

Quickstart on how to use this package

First install it with: pip3 install fmcapi Then to use the code best start a "with" statement that creates an instance of the FMC class like this: with FMC(host='192.168.11.15', username='admin', password='Admin123', autodeploy=False) as fmc: Then either code away referencing the fmc variable to get to the internal methods of the FMC class or utilize the various class objects to ease your coding needs.

I recorded a quick "howto" video which can be accessed via: https://www.youtube.com/watch?v=4NIe3T-HjDw

Note #1: Check out the TestingUsersScript.py file for ideas on how to use fmcapi (until I get around to writing documentation).

Note #2: You can directly send requests to the FMC via the send_to_api() method in the FMC class. This allows you to access any of the API features of the FMC.

ToDos

  • Modify FTD devices' interfaces.
  • Add NAT Policy/Rule functionality if/when it becomes available.
  • Add Static Route functionality if/when it becomes available.
  • Move the create_acp_rules FMC method into a class object in the api_objects module.
  • Build a complete system for all FMC API accessible objects (feature parity). Currently just over 50% of the FMC's API objects are represented in the fmcapi.
  • Most importantly: Write better how-to instructions. (Anyone willing to help?)

fmcapi's People

Contributors

daxm avatar rsp2k 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.