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/BFAF-2E2B-3924-423C-BDC0/sites/4906a335-1644-4130-b79e-28c462c32d85/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": "1b4016f6-a4d4-4cf1-8a7c-ef382f0f48f2,e0af17d7-c5a3-48a6-b692-25981942691f",
"PolicyId": "e4123f51-16b1-4e13-9ab0-4bc98ded7c45"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>1b4016f6-a4d4-4cf1-8a7c-ef382f0f48f2,e0af17d7-c5a3-48a6-b692-25981942691f</EndpointsList> <PolicyId>e4123f51-16b1-4e13-9ab0-4bc98ded7c45</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).