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/2DB0-898C-9090-4F3E-AC30/sites/73da116b-0f65-4e83-ab74-ca52bea07be4/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": "420a9f0b-9028-4b1d-9314-41ada2b39637",
"Type": "StaticIP",
"Value": "95.100.120.55",
"DNSPolicyId": "09821f28-0d5d-44ed-8bcd-51408454ff7c"
},
{
"Id": "ee1e1b9b-c6aa-4b6e-bbe2-627ebb6c2e72",
"Type": "StaticIP",
"Value": "95.200.187.4",
"DNSPolicyId": "52c455c3-be0e-4b1d-912c-d5d9ba39e427"
}
]
}
<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>09821f28-0d5d-44ed-8bcd-51408454ff7c</DNSPolicyId>
<Id>420a9f0b-9028-4b1d-9314-41ada2b39637</Id>
<Type>StaticIP</Type>
<Value>95.100.120.55</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
<GetDNSPPolicyMappingsResponseModel_Mapping>
<DNSPolicyId>52c455c3-be0e-4b1d-912c-d5d9ba39e427</DNSPolicyId>
<Id>ee1e1b9b-c6aa-4b6e-bbe2-627ebb6c2e72</Id>
<Type>StaticIP</Type>
<Value>95.200.187.4</Value>
</GetDNSPPolicyMappingsResponseModel_Mapping>
</PolicyMappings>
<TotalCount>2</TotalCount>
</GetDNSPPolicyMappingsResponseModel>