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/07E4-2927-75AF-48C6-9D4E/sites/09c10d05-20f7-4fc1-9004-6f82b44577f1/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": "63121ec0-fa52-46b1-908d-b68586750f4a",
"Type": "StaticIP",
"Value": "95.236.152.69",
"DNSPolicyId": "60b49e7b-ca34-49b0-8829-228b19e0a7b0"
},
{
"Id": "ac53892a-fd84-4a16-ae1d-ec6c8b31801b",
"Type": "StaticIP",
"Value": "95.108.111.247",
"DNSPolicyId": "2daef838-aa25-4513-94b2-127ef046b578"
}
]
}
<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>60b49e7b-ca34-49b0-8829-228b19e0a7b0</DNSPolicyId>
<Id>63121ec0-fa52-46b1-908d-b68586750f4a</Id>
<Type>StaticIP</Type>
<Value>95.236.152.69</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>2daef838-aa25-4513-94b2-127ef046b578</DNSPolicyId>
<Id>ac53892a-fd84-4a16-ae1d-ec6c8b31801b</Id>
<Type>StaticIP</Type>
<Value>95.108.111.247</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>