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/B32A-9E94-266D-4CD0-83FE/sites/47146031-9451-4d9d-a8c7-8e243b8dbe67/endpoints/policy
|
Body Parameters
Additional information for setting a new policy.
SetPolicyEndpointsRequestModelName | 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": "eb0f6531-6804-4fee-8091-b01585628347,ef3c018e-72cc-4bd3-b661-9f1146d32f4e", "PolicyId": "eeca8e65-67db-40ec-afa9-92dd78b8945e" }
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>eb0f6531-6804-4fee-8091-b01585628347,ef3c018e-72cc-4bd3-b661-9f1146d32f4e</EndpointsList> <PolicyId>eeca8e65-67db-40ec-afa9-92dd78b8945e</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).