Forum Discussion
filtering the list of virtual servers based on IP (destination) or some other parameters
Hello, we are in need of filtering the large output of vServers, based on IP in the first place, as this (IP address) is the input parameter. Once, when we discover the "name", the rest should be much easier. However, as this works fine (filtering) with the Netscaler, we are struggling to do the similar with F5 REST API. For example:
{
"kind": "tm:ltm:virtual:virtualstate",
"name": "customer_name",
"partition": "Common",
"fullPath": "/Common/customer_name",
"generation": 1,
"selfLink": "https://localhost/mgmt/tm/ltm/virtual/~Common~customer_name?ver=12.1.0",
"addressStatus": "yes",
"autoLasthop": "default",
"cmpEnabled": "yes",
"connectionLimit": 0,
"destination": "/Common/10.10.10.1:443",
"enabled": true,
"gtmScore": 0,
"ipProtocol": "tcp",
"mask": "255.255.255.255",
"mirror": "disabled",
"mobileAppTunnel": "disabled",
"nat64": "disabled",
"pool": "/Common/customer_name",
"poolReference": {
"link": "https://localhost/mgmt/tm/ltm/pool/~Common~customer_name?ver=12.1.0"
},
or, how to filter the all the list: https://10.17.12.105/mgmt/tm/ltm/virtual
with something like: https://10.17.12.105/mgmt/tm/ltm/virtual/?$filter=destination;10.10.10.1:443
Please advise, Stan
3 Replies
- Sukesh123456
Altostratus
Hello Stan,
What exactly do you want to filter..iS it the related configuration that you are looking for an VIP. (shortcuts)?
- Strahinjas_2827
Nimbostratus
Hi Sukesh, thanks for the reply, I think my question is exactly the same as is: https://devcentral.f5.com/s/feed/0D51T00006i7cqVSAQ unfortunately I don't see any updates there as well :( Simple, if we can't get the right info based on the IP(:port) as the input parameter, it will put us into the trouble. Parsing the large output just to get the corresponding name(item) as the pre requested step will really add the complexity, delay the execution and impact the performances. Please advise, Stan
 
- Salim_83682Historic F5 Account
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com