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/4B53-C071-4581-4C5E-BFB1/sites/da19286b-d111-4a75-bc45-8f33c44b56c7/dnsp/mappings
|
Body Parameters
None.
Response Information
Resource Description
Information about DNS Protection policy mappings.
GetDNSPPolicyMappingsResponseModel| Name | 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": "84ff60aa-d3f3-4678-9a4e-cba0c64268fd",
"Type": "StaticIP",
"Value": "95.35.99.186",
"DNSPolicyId": "9e9fc428-c69b-4cd7-9d63-cd4109acc210"
},
{
"Id": "0586649a-abca-413f-b468-7569906ee9d1",
"Type": "StaticIP",
"Value": "95.0.69.214",
"DNSPolicyId": "14532cd1-17f0-4c2b-9469-1135670a4c43"
}
]
}
<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>9e9fc428-c69b-4cd7-9d63-cd4109acc210</DNSPolicyId>
<Id>84ff60aa-d3f3-4678-9a4e-cba0c64268fd</Id>
<Type>StaticIP</Type>
<Value>95.35.99.186</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>14532cd1-17f0-4c2b-9469-1135670a4c43</DNSPolicyId>
<Id>0586649a-abca-413f-b468-7569906ee9d1</Id>
<Type>StaticIP</Type>
<Value>95.0.69.214</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>