GET /service/api/console/gsm/{gsmKey}/sites/{siteId}/dnsp/mappings
Returns the defined mappings of DNS Protection Policies for a GSM parent keycode, filtered by the given site.
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
gsmKey |
The GSM console keycode. |
string |
Required |
siteId |
The identifier of the site to query information for. |
string |
Required |
URI Sample(s)
GET
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/7AE6-1CCC-621F-41DE-8C33/sites/7728584c-7afd-40f8-978e-630f03a42f87/dnsp/mappings
|
Body Parameters
None.
Response Information
Resource Description
Information about DNS Protection policy mappings.
GetDNSPPolicyMappingsResponseModelName | Description | Type | Additional Information |
---|---|---|---|
TotalCount |
Total number of policy mappings available. |
integer |
None. |
PolicyMappings |
The list of mappings. |
Collection of GetDNSPPolicyMappingsResponseModel_Mapping |
None. |
Sample Response
{ "TotalCount": 2, "PolicyMappings": [ { "Id": "6e619491-c709-4799-9c49-dc4072d50448", "Type": "StaticIP", "Value": "95.52.163.132", "DNSPolicyId": "42ec4a7c-f858-4fb6-848e-332fd6550f11" }, { "Id": "d161ff99-d5b4-458f-91e9-513d98fd1fa8", "Type": "StaticIP", "Value": "95.48.133.199", "DNSPolicyId": "bbc46603-eeee-4d96-b184-efde8e1cbba8" } ] }
<GetDNSPPolicyMappingsResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <PolicyMappings> <GetDNSPPolicyMappingsResponseModel_Mapping> <DNSPolicyId>42ec4a7c-f858-4fb6-848e-332fd6550f11</DNSPolicyId> <Id>6e619491-c709-4799-9c49-dc4072d50448</Id> <Type>StaticIP</Type> <Value>95.52.163.132</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> <GetDNSPPolicyMappingsResponseModel_Mapping> <DNSPolicyId>bbc46603-eeee-4d96-b184-efde8e1cbba8</DNSPolicyId> <Id>d161ff99-d5b4-458f-91e9-513d98fd1fa8</Id> <Type>StaticIP</Type> <Value>95.48.133.199</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> </PolicyMappings> <TotalCount>2</TotalCount> </GetDNSPPolicyMappingsResponseModel>