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/320F-28B1-B862-4697-A26D/sites/9a9dcee0-0ae0-4523-8031-63b7f76b8b87/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": "11cef03d-3408-4060-b94a-535288f00dc2",
"Type": "StaticIP",
"Value": "95.27.219.236",
"DNSPolicyId": "ab3d0bda-244e-4f02-aca1-83c58b431ed8"
},
{
"Id": "200b2d40-d467-4aa7-818b-e171369a6213",
"Type": "StaticIP",
"Value": "95.232.39.78",
"DNSPolicyId": "abd052e2-c36c-47fd-838b-4e625f46e5d7"
}
]
}
<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>ab3d0bda-244e-4f02-aca1-83c58b431ed8</DNSPolicyId>
<Id>11cef03d-3408-4060-b94a-535288f00dc2</Id>
<Type>StaticIP</Type>
<Value>95.27.219.236</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>abd052e2-c36c-47fd-838b-4e625f46e5d7</DNSPolicyId>
<Id>200b2d40-d467-4aa7-818b-e171369a6213</Id>
<Type>StaticIP</Type>
<Value>95.232.39.78</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>