F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

serah's avatar
serah
Icon for Nimbostratus rankNimbostratus
Aug 31, 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