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/3073-D144-4745-47B1-8C80/sites/f2ae2f25-1923-4959-872f-46c7023b5d7d/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": "7a52fdcf-9d24-4a5c-824d-c61fa3f17157,0e24cb54-410c-4c02-be9e-08c8d906e1d8", "PolicyId": "58675c7f-bc0b-4b07-886a-93a9df1c7139" }
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>7a52fdcf-9d24-4a5c-824d-c61fa3f17157,0e24cb54-410c-4c02-be9e-08c8d906e1d8</EndpointsList> <PolicyId>58675c7f-bc0b-4b07-886a-93a9df1c7139</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).