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

URI Sample(s)

POST
https://unityapi.webrootcloudav.com/service/api/console/gsm/A5A6-A2DD-5601-42BE-99CE/sites/1b285cb0-7775-4310-8686-6724ad2c6b7c/endpoints/commands

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": "9ac749c6-37bb-4f1c-8574-fa5272bd28d0,cf9cc374-153c-4b09-93ff-264f2c14922d",
  "Command": "changekeycode",
  "Parameters": "3799-4FA5-CED5-4CEB-8923"
}                    
<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>9ac749c6-37bb-4f1c-8574-fa5272bd28d0,cf9cc374-153c-4b09-93ff-264f2c14922d</EndpointsList>
  <Parameters>3799-4FA5-CED5-4CEB-8923</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).