Strahinjas_2827
Aug 31, 2016Nimbostratus
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