GET /service/api/console/gsm/{gsmKey}/sites/{siteId}/policies
Gets the list of policies on a given GSM site.
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)
GET
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/36DA-3E54-8276-4444-ABFE/sites/0d87bffb-3da3-4c42-84a2-a98d7ad17ca5/policies
|
Body Parameters
None.
Response Information
Resource Description
Information about the list of policies available on a given GSM site.
GetGSMSitePoliciesResponseModelName | Description | Type | Additional Information |
---|---|---|---|
TotalCount |
Total number of policies available. |
integer |
None. |
Deleted |
Value (true/false) indicating whether any policy has been deleted. |
boolean |
None. |
Policies |
List of policy details records. |
Collection of GetGSMSitePoliciesResponseModel_Policy |
None. |
Sample Response
{ "TotalCount": 2, "Deleted": false, "Policies": [ { "PolicyId": "7d8938b1-7c7a-41e3-8042-d09ad3047d27", "DateCreated": "2024-11-20T15:44:40.8071864Z", "PolicyName": "Test Policy 1", "LivePolicy": true, "PendingPolicy": false, "PolicyDescription": "Description of test policy 1", "Deleted": false, "Canned": false, "DefaultSetting": false, "GlobalPolicy": false, "PolicyType": "Advanced" }, { "PolicyId": "d77fd9ac-7339-4758-947e-56310513e302", "DateCreated": "2024-09-20T15:44:40.8071864Z", "PolicyName": "Test Policy 2", "LivePolicy": true, "PendingPolicy": false, "PolicyDescription": "Description of test policy 2", "Deleted": false, "Canned": false, "DefaultSetting": false, "GlobalPolicy": false, "PolicyType": "Advanced" } ] }
<GetGSMSitePoliciesResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <Deleted>false</Deleted> <Policies> <GetGSMSitePoliciesResponseModel_Policy> <Canned>false</Canned> <DateCreated>2024-11-20T15:44:40.8071864Z</DateCreated> <DefaultSetting>false</DefaultSetting> <Deleted>false</Deleted> <GlobalPolicy>false</GlobalPolicy> <LivePolicy>true</LivePolicy> <PendingPolicy>false</PendingPolicy> <PolicyDescription>Description of test policy 1</PolicyDescription> <PolicyId>7d8938b1-7c7a-41e3-8042-d09ad3047d27</PolicyId> <PolicyName>Test Policy 1</PolicyName> <PolicyType>Advanced</PolicyType> </GetGSMSitePoliciesResponseModel_Policy> <GetGSMSitePoliciesResponseModel_Policy> <Canned>false</Canned> <DateCreated>2024-09-20T15:44:40.8071864Z</DateCreated> <DefaultSetting>false</DefaultSetting> <Deleted>false</Deleted> <GlobalPolicy>false</GlobalPolicy> <LivePolicy>true</LivePolicy> <PendingPolicy>false</PendingPolicy> <PolicyDescription>Description of test policy 2</PolicyDescription> <PolicyId>d77fd9ac-7339-4758-947e-56310513e302</PolicyId> <PolicyName>Test Policy 2</PolicyName> <PolicyType>Advanced</PolicyType> </GetGSMSitePoliciesResponseModel_Policy> </Policies> <TotalCount>2</TotalCount> </GetGSMSitePoliciesResponseModel>