Forum Discussion

RahulG's avatar
RahulG
Icon for Altocumulus rankAltocumulus
Mar 22, 2021

Need a Rest API URL to get virtual server details from GTM

Hi, I need to write a python code using rest API to get all the virtual server details like name and IP address from the GTM. When I use https://<gtm device>/mgmt/tm/gtm/server?expandSubcollections=true, it only expand the first sub collection i.e in devicesReference and not the second sub collection i.e. in virtualServersReference.

 

Could you please help me resolve or find a better way of getting the details using a rest API that I can call in python.