Forum Discussion

questions's avatar
questions
Icon for Nimbostratus rankNimbostratus
Jul 12, 2023

API: search for address lists containing an IP, or rules containing an address list?

Hello,

Using the API, I'm able to look up things like address lists or rule lists if I know their names, for example, a curl to

 

mgmt/cm/firewall/working-config/rule-lists?$filter=name+eq+someRuleListName

 

will give me the desired record contents, or using

 

mgmt/cm/adc-core/working-config/net/ip-address-lists?$filter=name+eq+someAddressListName

 

shows me the contents of the desired address list.

But how do I find those records if I don't know their names?

For example, if I want to know if the IP 10.1.3.4 exists in an address list, how do I query that from the API?

Or, if I know that address list webserverOne exists, how can I find what rules reference that list?

Thanks!