Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

F5 api to get active connections of virtual servers in ltm

serah
Nimbostratus
Nimbostratus

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?

 

 

0 REPLIES 0