cancel
Showing results for 
Search instead for 
Did you mean: 

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

RahulG
Altostratus
Altostratus

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.

2 REPLIES 2

Hello RahulG,

 

 

Test with the REST-API explorer from your web browser to find what you need as a command in your script:

 

 

Lab 2.1 - Interact with a REST Extension (f5.com)

 

 

 

 

 

RahulG
Altostratus
Altostratus

Hi, thanks for the link. Is there a URI to get the virtual server details from the GTM ?