API Documentation
Home > Total Uptime APIv2.0 Overview > Networking API > Disable/Enable Server

Disable/Enable Server

Method: PUT
URI: /ALF/Server/{ServerId}/ToggleStatus

This method disables or enables a server (device) and will affect all of the packs that it is used in without removing it. It has a required parameter to gently wait the specified number of minutes for sessions to expire before forcibly disabling it. While waiting, no new traffic will be sent to the device.

Field Required data
DisableInMinutes
Set to an integer between “1” and “60” when disabling
Set to “null” when enabling a server

Bold field is required

Curl examples:
Disable Server:
curl -X PUT -H “Accept: application/json” -u “user1@domain.com:Password1” -d {“DisableInMinutes”:1} “https://api.totaluptime.com/ALF/Server/{serverId}/ToggleStatus”

Enable Server:
curl -X PUT -H “Accept: application/json” -u “user1@domain.com:Password1” -d {“DisableInMinutes”:null} “https://api.totaluptime.com/ALF/Server/{serverId}/ToggleStatus”