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/98AA-939E-24BE-45C0-8186/sites/224079cc-1ad9-4600-8db7-99fd80b44564/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": "a9f93d24-d053-4eb2-bae2-a628d78cc0a9",
"Type": "StaticIP",
"Value": "95.239.224.118",
"DNSPolicyId": "90828bf3-7dd3-490a-aa6e-f07f0508f7c1"
},
{
"Id": "c5b9e84d-910f-47aa-8311-f0ff90accf5d",
"Type": "StaticIP",
"Value": "95.107.242.253",
"DNSPolicyId": "743334f5-cecf-4603-8f5b-b598dcbbba64"
}
]
}
<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>90828bf3-7dd3-490a-aa6e-f07f0508f7c1</DNSPolicyId>
<Id>a9f93d24-d053-4eb2-bae2-a628d78cc0a9</Id>
<Type>StaticIP</Type>
<Value>95.239.224.118</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>743334f5-cecf-4603-8f5b-b598dcbbba64</DNSPolicyId>
<Id>c5b9e84d-910f-47aa-8311-f0ff90accf5d</Id>
<Type>StaticIP</Type>
<Value>95.107.242.253</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>