cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
496
Views
0
Helpful
5
Replies

Search or Filter for an IP in the FMC policy with API

Difan_Zhao
Level 1
Level 1

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? 

Difan_Zhao_0-1723762052367.png

Thanks!
Difan

5 Replies 5

SamuelGLN
Spotlight
Spotlight

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 *******

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 *******

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

 

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 *******

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 *******

Review Cisco Networking for a $25 gift card