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/7560-B291-E205-4C4A-AD09/sites/f9fd145a-2ed9-42eb-a084-1d93c64564ea/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": "7b47f099-572d-45d6-9598-aa1f41c31de4",
"Type": "StaticIP",
"Value": "95.15.80.112",
"DNSPolicyId": "5cfea864-0e28-4fa8-bb38-f4d83d19f95a"
},
{
"Id": "68a8f466-3ebf-4aed-b66e-fdfc1ea701b4",
"Type": "StaticIP",
"Value": "95.47.129.8",
"DNSPolicyId": "f7fc4e62-e3d2-4ff2-af28-eb1fe0ef11f1"
}
]
}
<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>5cfea864-0e28-4fa8-bb38-f4d83d19f95a</DNSPolicyId>
<Id>7b47f099-572d-45d6-9598-aa1f41c31de4</Id>
<Type>StaticIP</Type>
<Value>95.15.80.112</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f7fc4e62-e3d2-4ff2-af28-eb1fe0ef11f1</DNSPolicyId>
<Id>68a8f466-3ebf-4aed-b66e-fdfc1ea701b4</Id>
<Type>StaticIP</Type>
<Value>95.47.129.8</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>