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/A5CB-990B-4028-43B8-B4BD/sites/495b2dca-b2f2-47c2-9b9b-ce9dc9bc1556/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": "6a503ccc-b644-4824-8963-7c354eb22200",
"Type": "StaticIP",
"Value": "95.86.145.83",
"DNSPolicyId": "c611903a-12f5-4e15-94d2-713d75edbb93"
},
{
"Id": "923d6fc6-296c-4691-9b2a-4885cfd5abed",
"Type": "StaticIP",
"Value": "95.212.157.136",
"DNSPolicyId": "8e4039de-a70c-4fd3-b497-3049c3e0ef13"
}
]
}
<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>c611903a-12f5-4e15-94d2-713d75edbb93</DNSPolicyId>
<Id>6a503ccc-b644-4824-8963-7c354eb22200</Id>
<Type>StaticIP</Type>
<Value>95.86.145.83</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>8e4039de-a70c-4fd3-b497-3049c3e0ef13</DNSPolicyId>
<Id>923d6fc6-296c-4691-9b2a-4885cfd5abed</Id>
<Type>StaticIP</Type>
<Value>95.212.157.136</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>