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/DE0D-6C84-59AC-454D-9E60/sites/ffe8f63f-a00f-4262-a77a-6b31159818fd/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": "f964ada0-a0cd-454e-9889-fea1a2da4e4e",
"Type": "StaticIP",
"Value": "95.96.173.231",
"DNSPolicyId": "01c46afe-ff52-4915-b854-a43807bebb55"
},
{
"Id": "4ffd70dd-5e81-4006-bd64-19987d8af7aa",
"Type": "StaticIP",
"Value": "95.27.199.147",
"DNSPolicyId": "78bd3d89-0d48-416e-a743-d8044f97066c"
}
]
}
<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>01c46afe-ff52-4915-b854-a43807bebb55</DNSPolicyId>
<Id>f964ada0-a0cd-454e-9889-fea1a2da4e4e</Id>
<Type>StaticIP</Type>
<Value>95.96.173.231</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>78bd3d89-0d48-416e-a743-d8044f97066c</DNSPolicyId>
<Id>4ffd70dd-5e81-4006-bd64-19987d8af7aa</Id>
<Type>StaticIP</Type>
<Value>95.27.199.147</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>