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/CF40-24FA-CF41-487B-A2F1/sites/b1a0275e-0615-4955-ab80-4fa16858e7b1/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": "d34720b6-2a67-46f5-97e8-c65062df2465",
"Type": "StaticIP",
"Value": "95.28.158.72",
"DNSPolicyId": "9c6792d5-649f-4c53-8368-b7246cf0b99a"
},
{
"Id": "7d53910b-77a7-4deb-b927-f5140fa00cfa",
"Type": "StaticIP",
"Value": "95.133.93.129",
"DNSPolicyId": "b56ea7dd-6528-436c-a35b-019c36ed94f5"
}
]
}
<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>9c6792d5-649f-4c53-8368-b7246cf0b99a</DNSPolicyId>
<Id>d34720b6-2a67-46f5-97e8-c65062df2465</Id>
<Type>StaticIP</Type>
<Value>95.28.158.72</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>b56ea7dd-6528-436c-a35b-019c36ed94f5</DNSPolicyId>
<Id>7d53910b-77a7-4deb-b927-f5140fa00cfa</Id>
<Type>StaticIP</Type>
<Value>95.133.93.129</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>