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/64F2-D606-CEA4-4282-8BD7/sites/aaa8cf0a-5dae-4b4b-87c3-ce370e633723/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": "c7bab1c1-4a6a-4049-b901-a7e3c96c649d",
"Type": "StaticIP",
"Value": "95.178.100.171",
"DNSPolicyId": "10cec796-f512-4fda-8fe2-46ce9861756a"
},
{
"Id": "6b9be227-42ad-48bb-be6b-a6644a80f2cb",
"Type": "StaticIP",
"Value": "95.125.170.146",
"DNSPolicyId": "4026146b-860a-43d2-b7a5-a7a835d33227"
}
]
}
<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>10cec796-f512-4fda-8fe2-46ce9861756a</DNSPolicyId>
<Id>c7bab1c1-4a6a-4049-b901-a7e3c96c649d</Id>
<Type>StaticIP</Type>
<Value>95.178.100.171</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>4026146b-860a-43d2-b7a5-a7a835d33227</DNSPolicyId>
<Id>6b9be227-42ad-48bb-be6b-a6644a80f2cb</Id>
<Type>StaticIP</Type>
<Value>95.125.170.146</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>