Search or Filter for an IP in the FMC policy with API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 03:47 PM
Hi team,
You know the nice search bar on the FMC Web UI where you can put in an IP and it just finds the rules matching it? Is there an equivalent API call for that?
Thanks!
Difan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 05:47 PM
Hi @Difan_Zhao,
You can use the developer tool in your browser to check which API request the FMC sends when you apply the filter.
Best regards
******* If This Helps, Please Rate *******
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 06:01 PM
I hope it can help you.
https://community.cisco.com/t5/artigos-gerais/desvendando-netdevops-parte-i/ta-p/4951636
Best regards
******* If This Helps, Please Rate *******
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 09:14 AM
Thanks Samuel. I ran the developer tool on my Chrome browser and I see some RPC call instead of the familiar API URLs... What is RPC and what its relationship with API? As you probably noticed, I am not from the developer background and would appreciate some directions. Thanks!
Request URL:
https://fmc.xxx.yyy/csm/FirewallRPC
Request Method:
POST
Status Code:
200 200
Remote Address:
10.x.x.x:443
Referrer Policy:
same-origin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 10:08 AM
Hi @Difan_Zhao,
Actually, you need run the developer tool on your Chrome browser and then apply the filter on Web UI. After do this, you'll able to analyse which API request is used for search bar on the FMC Web UI.
Best regards
******* If This Helps, Please Rate *******
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 10:17 AM
You also can find some examples on the follow postman link: https://www.postman.com/ciscodevnet/cisco-devnet-s-public-workspace/collection/7ditgiq/cisco-secure-firewall-management-center-fmc
Best regards
******* If This Helps, Please Rate *******
