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/57CE-836C-62AE-4304-A980/sites/8761c263-d21a-46d7-952c-517d1c3dcbaa/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": "e4c87b5a-1731-4e86-9991-7a5cc38d67e7",
"Type": "StaticIP",
"Value": "95.60.3.72",
"DNSPolicyId": "9172d613-3cde-4b00-b9ca-66fdfc329e95"
},
{
"Id": "de52bc80-8143-452e-8edb-3d894897c76f",
"Type": "StaticIP",
"Value": "95.27.104.225",
"DNSPolicyId": "cb9d7d4d-ed62-49de-9113-bbfe2401b14e"
}
]
}
<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>9172d613-3cde-4b00-b9ca-66fdfc329e95</DNSPolicyId>
<Id>e4c87b5a-1731-4e86-9991-7a5cc38d67e7</Id>
<Type>StaticIP</Type>
<Value>95.60.3.72</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>cb9d7d4d-ed62-49de-9113-bbfe2401b14e</DNSPolicyId>
<Id>de52bc80-8143-452e-8edb-3d894897c76f</Id>
<Type>StaticIP</Type>
<Value>95.27.104.225</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>