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/A848-F755-A7E8-4713-B056/sites/340508b1-67a5-4a4a-9aea-e224950507ad/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": "d8d022b7-dbf0-4b9d-b455-411fc8cc58f6",
"Type": "StaticIP",
"Value": "95.134.196.190",
"DNSPolicyId": "bba52752-65d5-4c99-a3e6-d1777db8bac8"
},
{
"Id": "19f71451-8248-4121-8e31-a4ad948aa142",
"Type": "StaticIP",
"Value": "95.74.117.242",
"DNSPolicyId": "5a9850a4-5427-419d-acaa-6a18eeba583f"
}
]
}
<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>bba52752-65d5-4c99-a3e6-d1777db8bac8</DNSPolicyId>
<Id>d8d022b7-dbf0-4b9d-b455-411fc8cc58f6</Id>
<Type>StaticIP</Type>
<Value>95.134.196.190</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>5a9850a4-5427-419d-acaa-6a18eeba583f</DNSPolicyId>
<Id>19f71451-8248-4121-8e31-a4ad948aa142</Id>
<Type>StaticIP</Type>
<Value>95.74.117.242</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>