GET /service/api/console/gsm/{gsmKey}/sites/{siteId}/policies/{policyId}

Gets information about a site policy.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The site identifier.

string

Required

policyId

The identifier of the policy to query information for.

string

Required

URI Sample(s)

GET
https://unityapi.webrootcloudav.com/service/api/console/gsm/38F2-282B-C2D9-4615-A534/sites/333a9360-159f-4804-8087-a41b832eace3/policies/10b5cecd-540f-487f-95b3-75bd667fe829

Body Parameters

None.

Response Information

Resource Description

Information about the desired site policy.

GetGSMSitePoliciesResponseModel
NameDescriptionTypeAdditional 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": 1,
  "Deleted": false,
  "Policies": [
    {
      "PolicyId": "63a31d22-0802-4a9f-af60-bbfa8d9d04cc",
      "DateCreated": "2024-09-17T14:18:08.7695055Z",
      "PolicyName": "Test Policy 1",
      "LivePolicy": true,
      "PendingPolicy": false,
      "PolicyDescription": "Description of test policy 1",
      "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-09-17T14:18:08.7695055Z</DateCreated>
      <DefaultSetting>false</DefaultSetting>
      <Deleted>false</Deleted>
      <GlobalPolicy>false</GlobalPolicy>
      <LivePolicy>true</LivePolicy>
      <PendingPolicy>false</PendingPolicy>
      <PolicyDescription>Description of test policy 1</PolicyDescription>
      <PolicyId>63a31d22-0802-4a9f-af60-bbfa8d9d04cc</PolicyId>
      <PolicyName>Test Policy 1</PolicyName>
      <PolicyType>Advanced</PolicyType>
    </GetGSMSitePoliciesResponseModel_Policy>
  </Policies>
  <TotalCount>1</TotalCount>
</GetGSMSitePoliciesResponseModel>