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/C8CF-A6DC-8568-437C-975F/sites/d6ea6bea-b720-4d06-89c6-212a0447748f/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": "7ef0576c-05a8-422c-97a2-3b5743d8d1d4",
"Type": "StaticIP",
"Value": "95.206.50.242",
"DNSPolicyId": "71c7ae5a-8c59-43fe-9bfa-47b4960cb41c"
},
{
"Id": "90399232-2458-4629-bfa1-a6ff5d71a06d",
"Type": "StaticIP",
"Value": "95.25.221.115",
"DNSPolicyId": "d4771ba7-6d93-4742-98c1-f4387d5d220e"
}
]
}
<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>71c7ae5a-8c59-43fe-9bfa-47b4960cb41c</DNSPolicyId>
<Id>7ef0576c-05a8-422c-97a2-3b5743d8d1d4</Id>
<Type>StaticIP</Type>
<Value>95.206.50.242</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>d4771ba7-6d93-4742-98c1-f4387d5d220e</DNSPolicyId>
<Id>90399232-2458-4629-bfa1-a6ff5d71a06d</Id>
<Type>StaticIP</Type>
<Value>95.25.221.115</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>