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/7DC0-F7AA-3A2F-43CB-92C1/sites/4d39bbd0-6162-4ac5-b88b-f8c61eec2a77/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": "843c1ff9-6159-4ff0-80fa-95c2dadda600,10b69895-f05e-4f56-9cff-4a17ac0d2ba7",
"PolicyId": "ff7cfab3-4d75-4f49-8a86-be8154465893"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>843c1ff9-6159-4ff0-80fa-95c2dadda600,10b69895-f05e-4f56-9cff-4a17ac0d2ba7</EndpointsList> <PolicyId>ff7cfab3-4d75-4f49-8a86-be8154465893</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).