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/8A7F-7C6C-9B04-45AF-919D/sites/eda92b03-739e-4513-8004-fc998e333bf5/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": "0facf00c-26fa-49f3-865a-412aa9c5e49e",
"Type": "StaticIP",
"Value": "95.236.153.107",
"DNSPolicyId": "8c2c470a-2acf-42f3-90e1-23b4de52d7ce"
},
{
"Id": "ba6b413a-2b85-4a40-acfc-1754875d840b",
"Type": "StaticIP",
"Value": "95.135.109.208",
"DNSPolicyId": "aaecdd48-74a0-42b6-b190-488b47fe0f25"
}
]
}
<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>8c2c470a-2acf-42f3-90e1-23b4de52d7ce</DNSPolicyId>
<Id>0facf00c-26fa-49f3-865a-412aa9c5e49e</Id>
<Type>StaticIP</Type>
<Value>95.236.153.107</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>aaecdd48-74a0-42b6-b190-488b47fe0f25</DNSPolicyId>
<Id>ba6b413a-2b85-4a40-acfc-1754875d840b</Id>
<Type>StaticIP</Type>
<Value>95.135.109.208</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>