Forum Discussion

Strahinjas_2827's avatar
Strahinjas_2827
Icon for Nimbostratus rankNimbostratus
Aug 31, 2016

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

  • Hello Stan,

     

    What exactly do you want to filter..iS it the related configuration that you are looking for an VIP. (shortcuts)?

     

  • 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