PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/endpoints/policy
Applies a new policy to the specified endpoints.
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)
|
PUT
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/4B2D-FC33-0D57-4408-B566/sites/d64591fe-3f2e-46da-909f-11b0f101ca5a/endpoints/policy
|
Body Parameters
Additional information for setting a new policy.
SetPolicyEndpointsRequestModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| EndpointsList |
Comma delimited string of endpoint identifiers. If not specified, the policy is set for all endpoints on the site. |
string |
None. |
| PolicyId |
The identifier of the policy that should be applied. |
string |
Required |
Sample Request
{
"EndpointsList": "0839a21b-adb9-4c26-891a-7eedb7c82428,ac12b836-0e66-4248-ae79-fc97a65a8a3d",
"PolicyId": "5c1a5946-4b7c-4c13-bbb3-46aa11d90a2e"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>0839a21b-adb9-4c26-891a-7eedb7c82428,ac12b836-0e66-4248-ae79-fc97a65a8a3d</EndpointsList> <PolicyId>5c1a5946-4b7c-4c13-bbb3-46aa11d90a2e</PolicyId> </SetPolicyEndpointsRequestModel>
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).