For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

SWJO's avatar
SWJO
Icon for Cirrostratus rankCirrostratus
Oct 12, 2019

Object inherit information API

Hi guys.

 

I need some advice regarding API which providing object inherit information.

 

I already know how to find out inherit information using CLI command.

 

These are example.

 

there are 3 vips, 2pools and binding information.

 

VIP1 - POOL1

VIP2 - POOL1

VIP3 - POOL2

 

when we need to delete POOL1, we need to delete or change VIP1 and VIP2.

 

So before delete POOL1, I need object`s inherit information.

 

ex) show ltm pool POOL1 inherit-information

output ) --> VIP1 VIP2

 

Does anyone know API or nice method?

 

with regards,

 

1 Reply

  • I would do:

    1) Get the pool information from all the virtuals (tmsh list ltm virtual pool)

    2) Grep the target pool.

    For example, to get the virtuals with the pool "Pool-CentOS80",

    curl -sku <user>:<pass> https://<mgmtIp>/mgmt/tm/ltm/virtual?\$select=pool,fullPath | python -m json.tool | grep -B 1 Pool-CentOS80 | grep fullPath

    See also the "About query parameters" section (pp. 28-29) of iControl® REST API User Guide

    Version 14.1.