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/3E85-165E-FC05-4D28-B5A2/sites/2d19a417-58ae-458c-91ea-5b2a4d6a3a89/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": "91dfbbb0-30c0-4750-8217-c29fb2cc947e,df48745b-4304-46f1-b221-b7b7a5c7cdf9",
"PolicyId": "65ff44a9-2133-4ec1-b471-21ea2dcef446"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>91dfbbb0-30c0-4750-8217-c29fb2cc947e,df48745b-4304-46f1-b221-b7b7a5c7cdf9</EndpointsList> <PolicyId>65ff44a9-2133-4ec1-b471-21ea2dcef446</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).