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 at:
FMC API Script Repo