Code Monkey home page Code Monkey logo

fmc-api-scripts's Introduction

FMC-API-Scripts

Cisco Firepower Manager API Python Scripts

This repository contains scripts written in python that interact with the Cisco Firepower Manager (FMC) API to do stuff. I am making the scripts available to say thanks to all those that helped me gain the knowledge required to get them to work.

I built and ran the scripts in notepad++ using python 3.8.2. I have used these scripts on a production environment, firstly on FMC 6.4.x and then on 6.5.x. So they work as I intended for my use, this may not always be ideal for everyone. Please test them before they are used on a production environment.

Use of these scripts is entirely at your own risk.

Scripts post-csv-hosts-070620.py creates network host objects for use in FMC policies via API POST operation set up to call the csv filename during script input e.g.:py post-csv-hosts-070620.py .csv. see sample csv file hosts2post.csv.

get-hosts-for-csv-070620.py collects all network host objects in FMC via API GET operation option 1 places the GET data in a text file and includes the Object ID which is required to delete an object .

delete-hosts-from-csv-070620.py This script deletes hosts from FMC via API DELETE operation. You need to ID the hosts by UUID, use get hosts for csv script above to collect the UUID. After removing any hosts you do not want to delete from the GET hosts file and changing the file name to .csv you will have the prerequisite file to delete all the host objects in the csv .

fmc-api-scripts's People

Contributors

maneck-uk avatar

Stargazers

 avatar  avatar  avatar

Watchers

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