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/8E14-8B1B-4F0E-4392-85BB/sites/f4ce016e-3425-472f-acbb-cb2b7cfc669b/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": "7256ee07-b134-4303-bfda-e29ac5f4f07b", "Type": "StaticIP", "Value": "95.27.172.195", "DNSPolicyId": "492a3354-3cd1-487e-b90e-92727bbe1fd6" }, { "Id": "e4b5dfca-c071-40aa-927e-fada8d9cb378", "Type": "StaticIP", "Value": "95.108.44.38", "DNSPolicyId": "7c0642eb-1639-4df3-b788-6527a44668f0" } ] }
<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>492a3354-3cd1-487e-b90e-92727bbe1fd6</DNSPolicyId> <Id>7256ee07-b134-4303-bfda-e29ac5f4f07b</Id> <Type>StaticIP</Type> <Value>95.27.172.195</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> <GetDNSPPolicyMappingsResponseModel_Mapping> <DNSPolicyId>7c0642eb-1639-4df3-b788-6527a44668f0</DNSPolicyId> <Id>e4b5dfca-c071-40aa-927e-fada8d9cb378</Id> <Type>StaticIP</Type> <Value>95.108.44.38</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> </PolicyMappings> <TotalCount>2</TotalCount> </GetDNSPPolicyMappingsResponseModel>