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
| Name | Description | Type | Additional 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/31B7-03BD-4EC5-4331-B77A/sites/5ba5df6f-ee03-4d31-9c98-c824fa078419/endpoints/commands
|
Body Parameters
Additional information for issuing an agent command.
SetCommandRequestModel| Name | Description | Type | Additional 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", "deactivate", "reactivate", "sysisolate". |
string |
Required |
| Parameters |
The parameters required for the command. changekeycode and sysisolate commands require a Parameters value to be specified - for changekeycode the value needs to be the keycode to change to, for sysisolate the value needs to be either "on" (for isolating) or "off" (for unisolating). |
string |
None. |
Sample Request
{
"EndpointsList": "7c7491e2-f5de-489e-8787-f13d2c486b01,1c7a3b48-8839-4f7a-8f1c-9c6de2b56425",
"Command": "changekeycode",
"Parameters": "90C7-59F4-31D2-4F49-AD2F"
}
<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>7c7491e2-f5de-489e-8787-f13d2c486b01,1c7a3b48-8839-4f7a-8f1c-9c6de2b56425</EndpointsList> <Parameters>90C7-59F4-31D2-4F49-AD2F</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).