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/75CD-1AE8-855A-439D-BC3A/sites/349000e1-2f9a-49b0-a59b-cc1bfb1c2d6c/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": "e424b96a-ea1d-4fc3-8d74-2617042bfe07",
"Type": "StaticIP",
"Value": "95.129.244.210",
"DNSPolicyId": "3147408e-2efc-4690-acea-6392b792fb0b"
},
{
"Id": "d838024e-0e06-4263-957b-26139ef6ff73",
"Type": "StaticIP",
"Value": "95.239.96.124",
"DNSPolicyId": "f7c8fb86-37c1-45e4-af63-ebfee5d2ddf8"
}
]
}
<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>3147408e-2efc-4690-acea-6392b792fb0b</DNSPolicyId>
<Id>e424b96a-ea1d-4fc3-8d74-2617042bfe07</Id>
<Type>StaticIP</Type>
<Value>95.129.244.210</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>f7c8fb86-37c1-45e4-af63-ebfee5d2ddf8</DNSPolicyId>
<Id>d838024e-0e06-4263-957b-26139ef6ff73</Id>
<Type>StaticIP</Type>
<Value>95.239.96.124</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>