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/A6A2-1CEE-E41A-4252-B493/sites/49e80121-e8e1-47a7-809f-d9a6f378420b/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": "6a6f9497-f558-4281-91fd-ebae2dd5f39f",
"Type": "StaticIP",
"Value": "95.76.191.111",
"DNSPolicyId": "3b2d8bc8-7d97-40df-ba14-b6f5524b5224"
},
{
"Id": "ee1424ed-987f-445c-b2b9-20d8e93727fb",
"Type": "StaticIP",
"Value": "95.118.109.151",
"DNSPolicyId": "3d8c13a6-2fd8-4f60-927a-f02d0f0586e7"
}
]
}
<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>3b2d8bc8-7d97-40df-ba14-b6f5524b5224</DNSPolicyId>
<Id>6a6f9497-f558-4281-91fd-ebae2dd5f39f</Id>
<Type>StaticIP</Type>
<Value>95.76.191.111</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>3d8c13a6-2fd8-4f60-927a-f02d0f0586e7</DNSPolicyId>
<Id>ee1424ed-987f-445c-b2b9-20d8e93727fb</Id>
<Type>StaticIP</Type>
<Value>95.118.109.151</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>