Cisco Secure Firewall Management Center (FMC)
Number of APIs: 171
Cisco Secure Firewall Management Center (FMC)
The goal of this collection is to provide an easy-to-use collection of api calls to create, read, update and delete resources via FMCs REST API
Structure
The structure of this collection is based on FMCs API Explorer.
Usage
Various requests have dependencies on pre-existing resources hence Pre-request Scripts
are being used to determine if Qodex is already aware of the required UUIDs.
If you encounter an error during execution telling you that a required resource cannot be found you can navigate to the resource folder and find a Find $ResourceName ID
request. By executing this request Qodex will search all existing resources (limited to a page size of 1000) for the name of the resource specified in the collection variables. If a resource with a matching name is found the UUID variable is automatically populated.
Getting Started
Within the Qodex collection navigate to Variables
and edit the required variables hostname, username and password.
After setting the required variables you will need to retrieve an authorization token. Within the Authentication
folder you find two calls:
- Retrieve Authorization Token (used for initial authentication)
- Refresh Authorization Token (tokens are valid for 30 minutes and can be refreshed up to 3 times)
Troubleshooting
Most requests include console logging. Open up the Console to get additional information about a requests result
-
Device Groups - Update DeviceGroup PUT {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/devicegroups/devicegrouprecords/{{devicegroup_id}}
-
Policy-NatPolicy-AutoNatRule - Delete AutoNatRule DELETE {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/policy/ftdnatpolicies/{{natpolicy_id}}/autonatrules/{{autonatrule_id}}
-
Object-Network - Create Network POST {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/object/networks
-
Policy-S2SVPN-IpsecSettings - Read IpsecSettings GET {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/policy/ftds2svpns/{{s2svpn_id}}/ipsecsettings?expanded=True
-
Object-Host - Delete Host DELETE {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/object/hosts/{{host_id}}
-
Policy-AccessPolicy-AccessRule - Find Accessrule ID GET {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/policy/accesspolicies/{{accesspolicy_id}}/accessrules?limit=1000
-
Policy-AccessPolicy-Hitcounts - AccessPolicy POST {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/policy/accesspolicies
-
Devices-DeviceRecords-Routing-Ipv4StaticRoute - Update Ipv4StaticRoute PUT {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/devices/devicerecords/{{device_id}}/routing/ipv4staticroutes/{{device_ipv4staticroute_id}}
-
Deployment - Read DeployableDevices GET {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/deployment/deployabledevices?expanded=True
-
Object-Network - Read Network GET {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/object/networks/{{network_id}}