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/3EF3-E772-8CB8-4412-A074/sites/1dfde8ed-0695-40ab-98d3-0224a8ecf75a/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": "210a5488-a02c-4fe5-b41e-8ff9b2730a67",
"Type": "StaticIP",
"Value": "95.150.19.107",
"DNSPolicyId": "bb90870c-c697-491c-b6d5-eb2e21734491"
},
{
"Id": "37551430-2951-4d19-a8a8-4e806f44ee1b",
"Type": "StaticIP",
"Value": "95.226.117.56",
"DNSPolicyId": "d9e0a80e-a2ad-417b-a502-8fc08e6ae60d"
}
]
}
<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>bb90870c-c697-491c-b6d5-eb2e21734491</DNSPolicyId>
<Id>210a5488-a02c-4fe5-b41e-8ff9b2730a67</Id>
<Type>StaticIP</Type>
<Value>95.150.19.107</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>d9e0a80e-a2ad-417b-a502-8fc08e6ae60d</DNSPolicyId>
<Id>37551430-2951-4d19-a8a8-4e806f44ee1b</Id>
<Type>StaticIP</Type>
<Value>95.226.117.56</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>