26 Apr 2022 12:26 PM - last edited on 22 Oct 2023 11:31 PM by AntonPineiro
import requests
URL = "https://gbmonitor/e/{tenand_id}/api/v2/activeGates/"
print("search by id : ")
id=input("> ")
queryURL = URL + f"{id}"
response = requests.get(queryURL, headers={'Authorization': "Api-Token " + "dt0c01.XXXXXXX"})
print(response.text)
I'm probably making a mistake in the request part, I wonder how it will be, the error I get is:
Solved! Go to Solution.
26 Apr 2022 03:47 PM
The SSL certificate on that AG/host is probably for a different DNS. Try setting verify=false in the get and see if that helps.