31-Aug-2020 20:42
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?