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/A024-4B22-2ABD-47C4-8EC7/sites/d75b5ab5-71f1-4238-8f83-44aa08a8a222/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": "c56453d2-e33c-4418-87f1-42b14b608244,0afbab56-c6b4-41a0-8b3d-93c60ad7881c", "PolicyId": "fba08a5a-d521-4dbd-b2de-ed55ed44a00a" }
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>c56453d2-e33c-4418-87f1-42b14b608244,0afbab56-c6b4-41a0-8b3d-93c60ad7881c</EndpointsList> <PolicyId>fba08a5a-d521-4dbd-b2de-ed55ed44a00a</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).