2024-10-11
api, client, reboot

The following explains how to use API commands to power on, reboot, or shut down PCs and consoles.

API for PCs

API for Consoles

Api for PCs

  1. To send a reboot command to a client PC via the API, find the appropriate API in the link below.
    https://dev.icafecloud.com/docs/#pc-sessions-apis-POSTapi-v2-cafe--cafeId--pcSessions-sendWssCommand
  2. For command use “power” (Figure 1)
  3. We support 3 different commands as "reboot", "shutdown", "poweron"  
    {"action":"power", "target":"boot","data":{"power_type":"reboot","ids":[24]}}

Figure 1

Api for Consoles

  1. API Command to Power On Consoles:
    {"action":"ewelink_switch", "target":"server","data":{device_names: ['xbox01'], device_ids: ['mac_address_of_console'], switch: 'on', staff: 'staffname'}}

Related: