@Tom-Elliott That’s right, in the UI I check the box, but in the POST request this flag is missing, or maybe I’m not naming it correctly?
C
Latest posts made by chevengur
-
RE: FOG Rebootposted in FOG Problems
-
FOG Rebootposted in FOG Problems
Hi everyone, I ran into an issue: I’m trying to perform a one-time system reboot in Power Management via Python requests. However, the problem is that after this command, the computer creates a Cron Schedule, causing it to reboot continuously. Is there any way to avoid this? In the GUI, there is a “Perform Immediately” flag that sends a one-time reboot request.

def reboot(self): REBOOT_URL = "http://IP/fog/powermanagement" payload = { "performImmediately": 1, # doesn't work "hostID": 13, "min": 0, "hour": 0, "dom": 0, "month": 0, "dow": 0, "action": "reboot" } r = requests.post( REBOOT_URL, headers=self.headers, json=payload, verify=False ) print(r.status_code, r.text)