POST /service/api/console/gsm/{gsmKey}/sites/{siteId}/endpoints/commands

Issues an agent command to a list of endpoints, or to all endpoints on a site.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The site identifier.

string

Required

Body Parameters

Additional information for issuing an agent command.

SetCommandRequestModel
NameDescriptionTypeAdditional Information
EndpointsList

Comma delimited string of endpoint ids. If not specified, the command gets applied to all endpoints on the site.

string

None.

Command

The type of the command. Valid values are "scan", "cleanup", "uninstall", "changekeycode", "restart".

string

Required

Parameters

The parameters required for the command (e.g. required for the "changekeycode" command to specify the keycode).

string

None.

Sample Request

{
  "EndpointsList": "5b87a330-b6ef-43bd-8d20-cc6d88b2aa73,3c13bc90-da32-425c-8a39-df63a5599548",
  "Command": "changekeycode",
  "Parameters": "EDC3-4697-94BD-45E9-8A04"
}                    
<SetCommandRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <Command>changekeycode</Command>
  <EndpointsList>5b87a330-b6ef-43bd-8d20-cc6d88b2aa73,3c13bc90-da32-425c-8a39-df63a5599548</EndpointsList>
  <Parameters>EDC3-4697-94BD-45E9-8A04</Parameters>
</SetCommandRequestModel>                    

Response Information

Resource Description

None. If successful, this API action does not return any data and the response status code will be 204 (No Content).