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/DB84-9718-C9D8-41F6-B99B/sites/41f91a68-35e5-4d3a-b838-dcf22f6dc6f9/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": "46c94524-733d-4485-85c5-50189dec92db",
"Type": "StaticIP",
"Value": "95.154.214.98",
"DNSPolicyId": "43717b6a-3226-4a2e-a8cf-3ac5b82eea62"
},
{
"Id": "7674af8e-7030-4131-a961-ba480c1fe99c",
"Type": "StaticIP",
"Value": "95.130.199.180",
"DNSPolicyId": "d80a7de5-4245-49eb-9653-4eec16d26c9c"
}
]
}
<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>43717b6a-3226-4a2e-a8cf-3ac5b82eea62</DNSPolicyId>
<Id>46c94524-733d-4485-85c5-50189dec92db</Id>
<Type>StaticIP</Type>
<Value>95.154.214.98</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>d80a7de5-4245-49eb-9653-4eec16d26c9c</DNSPolicyId>
<Id>7674af8e-7030-4131-a961-ba480c1fe99c</Id>
<Type>StaticIP</Type>
<Value>95.130.199.180</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>