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/3FC2-80E8-724C-467A-8EA0/sites/e9a63372-da55-4d8c-a15e-56b7a7f73675/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": "dd9644ca-04b0-4cc9-9c12-12d496dc797b",
"Type": "StaticIP",
"Value": "95.42.72.67",
"DNSPolicyId": "6efda9e3-cd93-4317-9975-721d00e12f13"
},
{
"Id": "ff12f00a-ed99-4ee2-b48e-d909d3adff1d",
"Type": "StaticIP",
"Value": "95.188.83.100",
"DNSPolicyId": "1fc5b51b-ef37-4f5c-ac76-9e7fb46c47c2"
}
]
}
<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>6efda9e3-cd93-4317-9975-721d00e12f13</DNSPolicyId>
<Id>dd9644ca-04b0-4cc9-9c12-12d496dc797b</Id>
<Type>StaticIP</Type>
<Value>95.42.72.67</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>1fc5b51b-ef37-4f5c-ac76-9e7fb46c47c2</DNSPolicyId>
<Id>ff12f00a-ed99-4ee2-b48e-d909d3adff1d</Id>
<Type>StaticIP</Type>
<Value>95.188.83.100</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>