Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

questions
Nimbostratus
Nimbostratus

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!

4 REPLIES 4

mihaic
MVP
MVP

right now I can not test but did you had a look at this : 

https://community.f5.com/t5/technical-articles/demystifying-icontrol-rest-part-3-how-to-pass-query-p...

Have you tried it with 'options'?

Leslie_Hubertus
Community Manager
Community Manager

Hi @questions  - did @mihaic's reply solve your issue, or do you still need help? If the article he linked solved your issue, can you please click the Accept as Solution button on his post to make it easier for future users to find the solution they need?

Hi, I did see the "demystifying" set of articles prior to posting, but I'm not sure how to use 'options' to accomplish this task.

@JRahm literally wrote the article that @mihaic shared - tagging them both for an assist.