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/8966-606A-D277-4C13-A14E/sites/651fae74-d4c8-4c6a-8908-f266e0477cfb/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": "c09dc9d0-1462-415f-ae9a-419878fa2e95",
"Type": "StaticIP",
"Value": "95.182.68.168",
"DNSPolicyId": "c85f7ff6-6128-4427-b550-42193becd62b"
},
{
"Id": "1e28678a-2526-425c-93ac-1644e17b90fa",
"Type": "StaticIP",
"Value": "95.121.81.0",
"DNSPolicyId": "c4722d6e-fa03-4c2f-8f2b-527ecc5cf079"
}
]
}
<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>c85f7ff6-6128-4427-b550-42193becd62b</DNSPolicyId>
<Id>c09dc9d0-1462-415f-ae9a-419878fa2e95</Id>
<Type>StaticIP</Type>
<Value>95.182.68.168</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>c4722d6e-fa03-4c2f-8f2b-527ecc5cf079</DNSPolicyId>
<Id>1e28678a-2526-425c-93ac-1644e17b90fa</Id>
<Type>StaticIP</Type>
<Value>95.121.81.0</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>