Forum Discussion

serah's avatar
serah
Icon for Nimbostratus rankNimbostratus
Sep 01, 2020

F5 api to get active connections of virtual servers in ltm

Hi,

I have been trying to figure out how to get the number of current connections for the ltm virtual servers. I was able to do so using https://ipaddr/mgmt/tm/ltm/virtual/stats endpoint. But i am trying to get the total sum for intervals like 24 hours , hourly data etc.

 

import requests

 

url = "https://ipaddr/mgmt/tm/ltm/virtual/stats"

 

payload  = {}

headers = {

  '

}

 

response = requests.request("GET", url, headers=headers, data = payload)

 

print(response.text.encode('utf8')

 

 

Can you please help me with this rest api call?

 

 

No RepliesBe the first to reply