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/CE5B-A9EF-4D31-4190-8A8C/sites/d1481c12-bdad-4762-93ef-192ff1e2f84c/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": "1a3ee4a7-f697-4dc7-b97f-e66d861df044",
"Type": "StaticIP",
"Value": "95.108.43.130",
"DNSPolicyId": "3ff3a852-00c4-4f61-9435-7c880eb9518f"
},
{
"Id": "fdb4bb44-cb69-40e3-80c7-53052c545be7",
"Type": "StaticIP",
"Value": "95.155.84.97",
"DNSPolicyId": "cfc26424-969d-4934-9351-3d447e8c5525"
}
]
}
<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>3ff3a852-00c4-4f61-9435-7c880eb9518f</DNSPolicyId>
<Id>1a3ee4a7-f697-4dc7-b97f-e66d861df044</Id>
<Type>StaticIP</Type>
<Value>95.108.43.130</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>cfc26424-969d-4934-9351-3d447e8c5525</DNSPolicyId>
<Id>fdb4bb44-cb69-40e3-80c7-53052c545be7</Id>
<Type>StaticIP</Type>
<Value>95.155.84.97</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>