Cisco FMC v6 API Tools (Written for Python 3.6+)
TOOLS AVAILABLE
- Basic URL GET
- Create Network-Objects in bulk (POST)
- Create Network-Objects in bulk and add to New Object-Group (POST)
- Update IPS and/or File Policy for Access Rules (PUT)
- Get Inventory List from FMC (GET)
Basic URL GET Script
USER INPUT NEEDED:
- URI Path (/api/fmc_config/v1/domain/{domain_UUID}/object/networkgroups/{object_UUID})
- Expand output to show details of each object *(Not Supported with {object_UUID} GET)
- Limit output to a specific number of objects *(Not Supported with {object_UUID} GET)
- Save output to JSON file
Create Network Objects in bulk
USER INPUT NEEDED:
- URI Path (/api/fmc_config/v1/domain/{domain_UUID}/object/networks/)
- CSV Data Input file (CSV FORMAT - No Header Row: Column0 = ObjectName, Column1 = Address)
- Output Log File to JSON file
Create Network Objects in bulk and add to new Object-Group
USER INPUT NEEDED:
- FMC Domain UUID (/api/fmc_config/v1/domain/{domain_UUID}/object/networkgroups/)
- TXT Data Input file (ASA "show run object-group" output)
- Output Log File to JSON file
Update IPS and/or File Policy for Access Rules
USER INPUT NEEDED:
- FMC Domain UUID (/api/fmc_config/v1/domain/{domain_UUID}/object/networkgroups/)
- Access Policy UUID (/api/fmc_config/v1/domain/{domain_UUID}/policy/accesspolicies/{ACP_UUID})
- Intrusion Policy (Yes/No)
- File Policy (Yes/No)
- Output Log File
Get Inventory List from FMC
USER INPUT NEEDED:
- FMC Domain UUID (/api/fmc_config/v1/domain/{domain_UUID}/devices/devicerecords)