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/4715-7D4A-76C6-4328-BAA4/sites/9b4cfd48-f75b-4722-a23c-f630e84689eb/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": "e14d1a1a-7b49-4ebb-b81e-beccb1581903",
"Type": "StaticIP",
"Value": "95.243.57.213",
"DNSPolicyId": "53778306-7f0b-48ac-9efe-e8f7e4ba3a40"
},
{
"Id": "48c0ea02-f20a-4e29-b845-4ce6adc74cd5",
"Type": "StaticIP",
"Value": "95.42.54.11",
"DNSPolicyId": "473544bc-d6e2-47ad-a1fc-55e88c3b9375"
}
]
}
<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>53778306-7f0b-48ac-9efe-e8f7e4ba3a40</DNSPolicyId>
<Id>e14d1a1a-7b49-4ebb-b81e-beccb1581903</Id>
<Type>StaticIP</Type>
<Value>95.243.57.213</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>473544bc-d6e2-47ad-a1fc-55e88c3b9375</DNSPolicyId>
<Id>48c0ea02-f20a-4e29-b845-4ce6adc74cd5</Id>
<Type>StaticIP</Type>
<Value>95.42.54.11</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>