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/E461-A7A5-C925-4BD0-AACA/sites/8eadfbd2-ce10-4006-b85c-55b23a903126/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": "e3488a78-54de-43b6-bceb-3e7556ec9e2f", "Type": "StaticIP", "Value": "95.109.51.187", "DNSPolicyId": "9973b5f3-2683-4f0e-8ffb-63369c5fc534" }, { "Id": "84522853-10ad-4195-ac6e-f7ef6798a460", "Type": "StaticIP", "Value": "95.89.241.122", "DNSPolicyId": "44fa9883-d8cb-42a8-b36e-349da160d19a" } ] }
<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>9973b5f3-2683-4f0e-8ffb-63369c5fc534</DNSPolicyId> <Id>e3488a78-54de-43b6-bceb-3e7556ec9e2f</Id> <Type>StaticIP</Type> <Value>95.109.51.187</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> <GetDNSPPolicyMappingsResponseModel_Mapping> <DNSPolicyId>44fa9883-d8cb-42a8-b36e-349da160d19a</DNSPolicyId> <Id>84522853-10ad-4195-ac6e-f7ef6798a460</Id> <Type>StaticIP</Type> <Value>95.89.241.122</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> </PolicyMappings> <TotalCount>2</TotalCount> </GetDNSPPolicyMappingsResponseModel>