cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

909
Views
10
Helpful
1
Replies
Maneck_UK
Beginner

Python scripts to create and delete hosts on Firepower Manager (FMC) from csv file

I recently created python scripts that can create or delete host objects.

I received a lot of help from this community in getting them working. Therefore I'm making them available to the community to say thanks. Hopefully they will help someone in return.

 

The scripts are:

post-csv-hosts

This script creates network host objects for use in FMC policies via API POST operation.


get-hosts-for-csv

This script collects all network host objects in FMC via API GET operation and returns them to a csv formatted text file containing the Object ID which is required in delete an object.

 

delete-hosts-from-csv
This script deletes all network hosts within a csv via the FMC API DELETE operation

 

The scripts can be found on github at:

FMC-API-Scripts 

 

1 REPLY 1
#Mat
Frequent Contributor

Nice work, thanks for sharing it.

.
Content for Community-Ad