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/9C7D-066E-905B-425A-A050/sites/4257aa02-1ce8-41d2-9336-e12e262f623f/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": "7de77a7d-9c30-4af4-9892-c31637c9ea72",
"Type": "StaticIP",
"Value": "95.93.31.127",
"DNSPolicyId": "a728c3bf-4375-453a-aa5c-39d2ddcb3c5a"
},
{
"Id": "98b76c45-bec8-4d1b-ac99-7a553362547d",
"Type": "StaticIP",
"Value": "95.219.111.216",
"DNSPolicyId": "5f6fa770-f3ac-4798-b3d7-e05681f109f0"
}
]
}
<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>a728c3bf-4375-453a-aa5c-39d2ddcb3c5a</DNSPolicyId>
<Id>7de77a7d-9c30-4af4-9892-c31637c9ea72</Id>
<Type>StaticIP</Type>
<Value>95.93.31.127</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>5f6fa770-f3ac-4798-b3d7-e05681f109f0</DNSPolicyId>
<Id>98b76c45-bec8-4d1b-ac99-7a553362547d</Id>
<Type>StaticIP</Type>
<Value>95.219.111.216</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>