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/BFD2-1FBF-DB46-47AB-89C3/sites/f96271f0-8641-4a4a-b136-409b93742585/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": "6e991556-a716-4634-b2ef-ab28c0e1b6da",
"Type": "StaticIP",
"Value": "95.93.79.27",
"DNSPolicyId": "15408ee7-1a12-4ac1-b6bc-2f1a1c8590e7"
},
{
"Id": "f24114f7-be37-42d3-9d64-a5452cbd4de2",
"Type": "StaticIP",
"Value": "95.250.39.95",
"DNSPolicyId": "9fca0f50-2b8c-46aa-ad2a-99ef20461b3e"
}
]
}
<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>15408ee7-1a12-4ac1-b6bc-2f1a1c8590e7</DNSPolicyId>
<Id>6e991556-a716-4634-b2ef-ab28c0e1b6da</Id>
<Type>StaticIP</Type>
<Value>95.93.79.27</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>9fca0f50-2b8c-46aa-ad2a-99ef20461b3e</DNSPolicyId>
<Id>f24114f7-be37-42d3-9d64-a5452cbd4de2</Id>
<Type>StaticIP</Type>
<Value>95.250.39.95</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>