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/9FBD-94E9-A75D-4AA9-B17E/sites/a3da5a9e-1c77-42b2-b1e0-e32f12e11560/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": "6472753a-c5a3-4fee-8b52-707bb797fec4",
"Type": "StaticIP",
"Value": "95.62.67.242",
"DNSPolicyId": "ffa3e1ba-5045-48ae-92e2-8ba96bb7289b"
},
{
"Id": "5dd2bd4a-44f2-47fe-be6a-362e5af6b6f0",
"Type": "StaticIP",
"Value": "95.27.229.168",
"DNSPolicyId": "89a54620-f271-42a4-866d-f2b37c9848aa"
}
]
}
<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>ffa3e1ba-5045-48ae-92e2-8ba96bb7289b</DNSPolicyId>
<Id>6472753a-c5a3-4fee-8b52-707bb797fec4</Id>
<Type>StaticIP</Type>
<Value>95.62.67.242</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>89a54620-f271-42a4-866d-f2b37c9848aa</DNSPolicyId>
<Id>5dd2bd4a-44f2-47fe-be6a-362e5af6b6f0</Id>
<Type>StaticIP</Type>
<Value>95.27.229.168</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>