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/5832-2BEC-E614-4F4D-94C6/sites/a9ba251b-04ab-4bcd-8064-c20a55edd02e/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": "633d4d2b-7e34-4ff4-ba9a-e0d4322f867d", "Type": "StaticIP", "Value": "95.4.9.107", "DNSPolicyId": "4f349b8c-b64a-48ce-8aaa-5da2fd9b2cd4" }, { "Id": "1d084f1f-49b3-4c0f-8597-1f07bee7bb88", "Type": "StaticIP", "Value": "95.252.73.206", "DNSPolicyId": "b7bcd8e5-8a44-43b3-ad35-6c2af30d96b4" } ] }
<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>4f349b8c-b64a-48ce-8aaa-5da2fd9b2cd4</DNSPolicyId> <Id>633d4d2b-7e34-4ff4-ba9a-e0d4322f867d</Id> <Type>StaticIP</Type> <Value>95.4.9.107</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> <GetDNSPPolicyMappingsResponseModel_Mapping> <DNSPolicyId>b7bcd8e5-8a44-43b3-ad35-6c2af30d96b4</DNSPolicyId> <Id>1d084f1f-49b3-4c0f-8597-1f07bee7bb88</Id> <Type>StaticIP</Type> <Value>95.252.73.206</Value> </GetDNSPPolicyMappingsResponseModel_Mapping> </PolicyMappings> <TotalCount>2</TotalCount> </GetDNSPPolicyMappingsResponseModel>