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/D403-1F71-9423-4FA2-86CB/sites/9b415eba-e494-416e-afe9-eee8893156c2/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": "a334bb82-289b-4e3a-8341-18af86a1a640",
"Type": "StaticIP",
"Value": "95.171.197.58",
"DNSPolicyId": "3473a3c1-5600-4348-b22c-20235bc6cc40"
},
{
"Id": "1639a6e4-ae0a-46c5-aa29-f4b64da0ff74",
"Type": "StaticIP",
"Value": "95.243.226.232",
"DNSPolicyId": "f3ce63f6-ff4b-4360-a49c-d0b44d806028"
}
]
}
<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>3473a3c1-5600-4348-b22c-20235bc6cc40</DNSPolicyId>
<Id>a334bb82-289b-4e3a-8341-18af86a1a640</Id>
<Type>StaticIP</Type>
<Value>95.171.197.58</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f3ce63f6-ff4b-4360-a49c-d0b44d806028</DNSPolicyId>
<Id>1639a6e4-ae0a-46c5-aa29-f4b64da0ff74</Id>
<Type>StaticIP</Type>
<Value>95.243.226.232</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>